Skip to content
Snippets Groups Projects

Exchange 2016 support

Merged Alexey Lunin requested to merge exchange-2016-support into master
1 file
+ 18
12
Compare changes
  • Side-by-side
  • Inline
+ 18
12
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require("html-webpack-plugin");
const HtmlWebpackInlineSourcePlugin = require("html-webpack-inline-source-plugin");
const CleanWebpackPlugin = require("clean-webpack-plugin");
module.exports = {
entry: {
'viamapi-client': ['core-js/fn/promise', './src/viamapi-client.js'],
'viamapi-iframe': ['babel-polyfill','./src/lib/webcrypto-liner.shim.js','./src/lib/asmcrypto.all.es5.min.js' ,'./src/iframe/viamapi-iframe.js']
"viamapi-client": ["core-js/fn/promise", "./src/viamapi-client.js"],
"viamapi-iframe": [
"babel-polyfill",
"./src/lib/asmcrypto.all.es5.min.js",
"./src/lib/webcrypto-liner.shim.js",
"./src/iframe/viamapi-iframe.js"
]
},
plugins: [
new HtmlWebpackPlugin({ // Also generate a test.html
filename: 'viamapi-iframe.html',
template: 'src/iframe/viamapi-iframe.html',
chunks: ['viamapi-iframe'],
inlineSource: '.(js)$'
new HtmlWebpackPlugin({
// Also generate a test.html
filename: "viamapi-iframe.html",
template: "src/iframe/viamapi-iframe.html",
chunks: ["viamapi-iframe"],
inlineSource: ".(js)$"
}),
new CleanWebpackPlugin(),
new HtmlWebpackInlineSourcePlugin()
@@ -24,9 +30,9 @@ module.exports = {
// We have to transpile every dependency to make it work for older browsers. (IE 11)
//exclude: /node_modules/,
use: {
loader: 'babel-loader',
loader: "babel-loader",
options: {
presets: ['@babel/preset-env']
presets: ["@babel/preset-env"]
}
}
}
Loading