2018-07-05 09:54:41 +00:00
|
|
|
const common = require('./webpack.common.js')
|
|
|
|
const HTMLPlugin = require('html-webpack-plugin')
|
2018-03-01 18:39:36 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
...common,
|
2018-03-12 15:37:23 +00:00
|
|
|
mode: 'production',
|
2018-03-01 18:39:36 +00:00
|
|
|
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({
|
2018-07-05 10:14:00 +00:00
|
|
|
template: 'example-integration.html',
|
|
|
|
chunks: ['simulateur']
|
2018-07-05 09:54:41 +00:00
|
|
|
}),
|
|
|
|
...common.plugins,
|
|
|
|
]
|
2018-03-01 18:39:36 +00:00
|
|
|
}
|