Skip to content
Snippets Groups Projects
Commit 531000f3 authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

polyfil test

parent 0148409a
Branches
Tags
1 merge request!83Exchange 2016 support
Source diff could not be displayed: it is too large. Options to address this: view the blob.
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin')
const CleanWebpackPlugin = require('clean-webpack-plugin');
const AddAssetHtmlPlugin = require("add-asset-html-webpack-plugin");
module.exports = {
entry: {
'viamapi-client': ['core-js/fn/promise', './src/viamapi-client.js'],
'viamapi-iframe': ['babel-polyfill', './src/iframe/viamapi-iframe.js'],
'viamapi-iframe': ['babel-polyfill', './src/iframe/viamapi-iframe.js']
},
plugins: [
new HtmlWebpackPlugin({ // Also generate a test.html
......@@ -14,6 +15,9 @@ module.exports = {
chunks: ['viamapi-iframe'],
inlineSource: '.(js)$'
}),
new AddAssetHtmlPlugin({
filepath: require.resolve("./src/lib/webcrypto-liner.shim.js")
}),
new CleanWebpackPlugin(),
new HtmlWebpackInlineSourcePlugin()
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment