2018-03-01 18:39:36 +00:00
|
|
|
var webpack = require('webpack'),
|
|
|
|
common = require('./webpack.common.js')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
...common,
|
2018-03-01 19:30:57 +00:00
|
|
|
mode: 'development',
|
2018-03-01 18:39:36 +00:00
|
|
|
entry: {
|
|
|
|
bundle: [
|
|
|
|
'webpack-dev-server/client?http://0.0.0.0:3000/',
|
|
|
|
'webpack/hot/only-dev-server',
|
|
|
|
'@babel/polyfill',
|
|
|
|
'react-hot-loader/patch',
|
2018-07-04 17:45:43 +00:00
|
|
|
'./source/entry.js',
|
2018-06-19 09:55:01 +00:00
|
|
|
],
|
|
|
|
'colour-chooser': ['@babel/polyfill', './source/entry-colour-chooser.js']
|
2018-03-01 18:39:36 +00:00
|
|
|
// entrées désactivées pour accélérer la compilation au dev
|
|
|
|
//
|
|
|
|
// le nom "simulateur" est là pour des raisons historiques
|
|
|
|
//
|
2018-05-03 11:56:19 +00:00
|
|
|
// ,simulateur: './source/iframe-script.js',
|
2018-03-01 18:39:36 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
2018-07-04 17:45:43 +00:00
|
|
|
...common.plugins,
|
2018-03-01 18:39:36 +00:00
|
|
|
new webpack.EnvironmentPlugin({ NODE_ENV: 'development' }),
|
2018-07-04 17:45:43 +00:00
|
|
|
new webpack.HotModuleReplacementPlugin(),
|
2018-03-01 18:39:36 +00:00
|
|
|
]
|
|
|
|
}
|