2016-07-07 23:23:18 +02:00
|
|
|
var webpack = require("webpack");
|
|
|
|
var config = require("./webpack.config.base.js");
|
|
|
|
|
2016-08-10 21:36:11 +02:00
|
|
|
// Use cheap source maps
|
2016-07-07 23:23:18 +02:00
|
|
|
config.devtool = "cheap-module-eval-source-map";
|
|
|
|
|
2016-08-10 21:36:11 +02:00
|
|
|
// Necessary for hot reloading with IE:
|
2016-07-29 23:57:21 +02:00
|
|
|
config.entry.index.splice(1, 0, 'eventsource-polyfill');
|
2016-08-10 21:36:11 +02:00
|
|
|
// Listen to code updates emitted by hot middleware:
|
2016-07-29 23:57:21 +02:00
|
|
|
config.entry.index.splice(2, 0, 'webpack-hot-middleware/client');
|
2016-07-26 15:59:18 +02:00
|
|
|
|
2016-08-10 21:36:11 +02:00
|
|
|
// Hot reloading stuff
|
2016-07-26 15:59:18 +02:00
|
|
|
config.plugins = config.plugins.concat([
|
|
|
|
new webpack.HotModuleReplacementPlugin()
|
|
|
|
]);
|
|
|
|
|
2016-07-07 23:23:18 +02:00
|
|
|
module.exports = config;
|