1 Star 6 Fork 1

Mr Zhang/nest-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack-hmr.config.js 719 Bytes
一键复制 编辑 原始数据 按行查看 历史
19983467897 提交于 2025-03-19 22:24 +08:00 . feat: init
/* eslint-disable @typescript-eslint/no-require-imports */
const nodeExternals = require('webpack-node-externals');
const { RunScriptWebpackPlugin } = require('run-script-webpack-plugin');
module.exports = function (options, webpack) {
return {
...options,
entry: ['webpack/hot/poll?100', options.entry],
externals: [
nodeExternals({
allowlist: ['webpack/hot/poll?100'],
}),
],
plugins: [
...options.plugins,
new webpack.HotModuleReplacementPlugin(),
new webpack.WatchIgnorePlugin({
paths: [/\.js$/, /\.d\.ts$/],
}),
new RunScriptWebpackPlugin({
name: options.output.filename,
autoRestart: false,
}),
],
};
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/mrzym/nest-admin.git
git@gitee.com:mrzym/nest-admin.git
mrzym
nest-admin
nest-admin
master

搜索帮助