7 Star 4 Fork 4

北京师范大学-傅骞/mixly3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.dev.js 1009 Bytes
一键复制 编辑 原始数据 按行查看 历史
王立帮 提交于 2024-10-08 11:28 . Update: 禁用webpack devServer中hot
const path = require("path");
const common = require("./webpack.common");
const { merge } = require("webpack-merge");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ESLintPlugin = require('eslint-webpack-plugin');
module.exports = merge(common, {
mode: "development",
devtool: 'source-map',
plugins: [
new ESLintPlugin({
context: process.cwd(),
}),
new HtmlWebpackPlugin({
inject: false,
template: path.resolve(process.cwd(), 'template.xml'),
filename: 'index.xml',
minify: false
}),
],
devServer: {
https: true,
port: 8080,
host: '0.0.0.0',
hot: false,
static: {
directory: path.join(process.cwd(), '../../../'),
watch: false
},
devMiddleware: {
index: false,
publicPath: `/boards/default/${path.basename(process.cwd())}`,
writeToDisk: false
}
}
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bnu_mixly/mixly3.git
git@gitee.com:bnu_mixly/mixly3.git
bnu_mixly
mixly3
mixly3
master

搜索帮助