webpack/test/configCases/web/nonce/webpack.config.js

16 lines
352 B
JavaScript
Raw Normal View History

2022-05-10 02:45:42 +08:00
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
output: {
publicPath: "",
filename: "bundle0.mjs",
chunkFilename: "[name].js"
},
experiments: {
css: true
},
2022-05-10 02:45:42 +08:00
// plugin that intercepts __webpack_require__
plugins: [new webpack.HotModuleReplacementPlugin()]
};