mirror of https://github.com/webpack/webpack.git
23 lines
358 B
JavaScript
23 lines
358 B
JavaScript
const { HotModuleReplacementPlugin } = require("../../");
|
|
|
|
module.exports = {
|
|
mode: "development",
|
|
entry: {
|
|
main: "./example.js"
|
|
},
|
|
cache: {
|
|
type: "filesystem",
|
|
idleTimeout: 5000
|
|
},
|
|
experiments: {
|
|
lazyCompilation: {
|
|
entries: false
|
|
}
|
|
},
|
|
devServer: {
|
|
hot: true,
|
|
publicPath: "/dist/"
|
|
},
|
|
plugins: [new HotModuleReplacementPlugin()]
|
|
};
|