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

polyfil test

parent 0148409a
No related branches found
No related tags found
1 merge request!83Exchange 2016 support
This diff is collapsed.
const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-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 = { module.exports = {
entry: { entry: {
'viamapi-client': ['core-js/fn/promise', './src/viamapi-client.js'], '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: [ plugins: [
new HtmlWebpackPlugin({ // Also generate a test.html new HtmlWebpackPlugin({ // Also generate a test.html
...@@ -14,6 +15,9 @@ module.exports = { ...@@ -14,6 +15,9 @@ module.exports = {
chunks: ['viamapi-iframe'], chunks: ['viamapi-iframe'],
inlineSource: '.(js)$' inlineSource: '.(js)$'
}), }),
new AddAssetHtmlPlugin({
filepath: require.resolve("./src/lib/webcrypto-liner.shim.js")
}),
new CleanWebpackPlugin(), new CleanWebpackPlugin(),
new HtmlWebpackInlineSourcePlugin() new HtmlWebpackInlineSourcePlugin()
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment