2025-07-16 22:29:28 +08:00
|
|
|
"use strict";
|
|
|
|
|
2025-07-02 20:10:54 +08:00
|
|
|
const path = require("path");
|
2025-04-22 18:49:30 +08:00
|
|
|
const webpack = require("../../");
|
|
|
|
|
2020-04-20 13:36:55 +08:00
|
|
|
/** @type {import("../../").Configuration} */
|
2013-06-19 19:49:57 +08:00
|
|
|
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",
|
2013-06-19 19:49:57 +08:00
|
|
|
hashDigestLength: 4
|
|
|
|
},
|
2018-02-25 09:00:20 +08:00
|
|
|
plugins: [new webpack.HotModuleReplacementPlugin()],
|
2025-07-02 20:10:54 +08:00
|
|
|
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
|
|
|
};
|