mon-entreprise/source/webpack.prod.js

22 lines
549 B
JavaScript
Raw Normal View History

2018-07-05 09:54:41 +00:00
const common = require('./webpack.common.js')
const HTMLPlugin = require('html-webpack-plugin')
module.exports = {
...common,
2018-03-12 15:37:23 +00:00
mode: 'production',
entry: {
bundle: ['@babel/polyfill', 'whatwg-fetch', './source/entry.js'],
// le nom "simulateur" est là pour des raisons historiques
//
simulateur: './source/iframe-script.js',
'colour-chooser': ['@babel/polyfill', './source/entry-colour-chooser.js']
2018-07-05 09:54:41 +00:00
},
plugins: [
new HTMLPlugin({
template: 'example-integration.html',
chunks: ['simulateur']
2018-07-05 09:54:41 +00:00
}),
...common.plugins,
]
}