Ai
11 Star 11 Fork 17

北京师范大学-傅骞/mixly3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.prod.js 831 Bytes
一键复制 编辑 原始数据 按行查看 历史
王立帮 提交于 2024-09-08 13:32 +08:00 . Update: 添加新板卡 Python 3 Online
const path = require("path");
const common = require("./webpack.common");
const { merge } = require("webpack-merge");
const TerserPlugin = require("terser-webpack-plugin");
var HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = merge(common, {
mode: "production",
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
extractComments: false,
}),
new HtmlWebpackPlugin({
inject: false,
template: path.resolve(process.cwd(), 'template.xml'),
filename: 'index.xml',
minify: {
removeAttributeQuotes: true,
collapseWhitespace: true,
removeComments: true,
}
})
]
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bnu_mixly/mixly3.git
git@gitee.com:bnu_mixly/mixly3.git
bnu_mixly
mixly3
mixly3
master

搜索帮助