This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/webpack.config.dev.js

24 lines
542 B
JavaScript
Raw Normal View History

2017-05-17 07:09:47 +00:00
/* eslint-disable */
const webpack = require("webpack");
const commonWebpackConfig = require("./webpack.config");
2016-02-27 21:53:11 +00:00
2016-04-29 05:25:37 +00:00
const developmentWebpackConfig = Object.assign(commonWebpackConfig, {
2016-02-27 21:53:11 +00:00
cache: true,
mode: "development",
devtool: "eval-source-map",
2016-02-27 21:53:11 +00:00
entry: [
"webpack-hot-middleware/client",
"./app/index",
2016-02-27 21:53:11 +00:00
],
optimization: {
usedExports: true,
},
2016-02-27 21:53:11 +00:00
});
2018-01-22 06:24:10 +00:00
developmentWebpackConfig.plugins = [
...developmentWebpackConfig.plugins,
new webpack.HotModuleReplacementPlugin()
2018-01-22 06:24:10 +00:00
];
2016-02-27 21:53:11 +00:00
module.exports = developmentWebpackConfig;