webpack/test/hotPlayground/webpack.config.js

14 lines
443 B
JavaScript
Raw Normal View History

2025-04-22 18:49:30 +08:00
const webpack = require("../../");
/** @type {import("../../").Configuration} */
module.exports = {
entry: ["../../hot/dev-server", "./index.js"],
output: {
filename: "bundle.js",
2018-12-28 21:09:35 +08:00
hotUpdateChunkFilename: "[id].[fullhash].bundle-update.js",
hashDigestLength: 4
},
2018-02-25 09:00:20 +08:00
plugins: [new webpack.HotModuleReplacementPlugin()],
2024-07-31 10:39:30 +08:00
recordsPath: `${__dirname}/records.json` // this is not required for the webpack-dev-server, but when compiled.
2017-01-11 17:51:58 +08:00
};