webpack/test/hotPlayground/webpack.config.js

13 lines
440 B
JavaScript

var webpack = require("../../");
/** @type {import("../../").Configuration} */
module.exports = {
entry: ["../../hot/dev-server", "./index.js"],
output: {
filename: "bundle.js",
hotUpdateChunkFilename: "[id].[fullhash].bundle-update.js",
hashDigestLength: 4
},
plugins: [new webpack.HotModuleReplacementPlugin()],
recordsPath: __dirname + "/records.json" // this is not required for the webpack-dev-server, but when compiled.
};