webpack/test/hotPlayground/webpack.config.js

17 lines
502 B
JavaScript
Raw Permalink Normal View History

"use strict";
const path = require("path");
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()],
recordsPath: path.resolve(__dirname, "./records.json") // this is not required for the webpack-dev-server, but when compiled.
2017-01-11 17:51:58 +08:00
};