Skip to content
Snippets Groups Projects
Commit 93dac0b1 authored by Markin Igor's avatar Markin Igor
Browse files

Set up proper library functioning for IE 11.

parent 0b18e872
Branches
Tags
1 merge request!4Use webpack for bundling JS libs and move Golang code related to Iframe generation there
......@@ -31,6 +31,10 @@
"qrcode": "^1.3.0"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"babel-loader": "^8.0.4",
"babel-polyfill": "^6.26.0",
"webpack": "^4.23.1",
"webpack-cli": "^3.1.2"
}
......
......@@ -3,10 +3,24 @@ const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
mode: 'production',
entry: {
'viamapi-client': './src/viamapi-client.js',
'viamapi-iframe': './src/viamapi-iframe.js',
'viamapi-client': ['babel-polyfill', './src/viamapi-client.js'],
'viamapi-iframe': ['babel-polyfill', './src/viamapi-iframe.js'],
'wopiapi-iframe': './src/wopiapi-iframe.js'
},
module: {
rules: [
{
test: /\.m?js$/,
//exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
]
},
optimization: {
minimizer: [
new UglifyJsPlugin({
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment