1 Star 0 Fork 25

xuebingchuan2017/vue-utils

forked from 冰川/vue-utils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.js 817 Bytes
一键复制 编辑 原始数据 按行查看 历史
冰川 提交于 2023-02-01 19:53 +08:00 . fix: 关闭打包hash值功能并进行版本发包
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
module.exports = {
mode: "production",
entry: "./src/main.js",
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules)/,
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
plugins: [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties",
],
},
},
],
},
plugins: [
new CleanWebpackPlugin(),
new HtmlWebpackPlugin({ template: "index.html" }),
],
devServer: {
noInfo: true,
open: true,
},
output: {
filename: "[name].js",
path: path.resolve(__dirname, "lib"),
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuebingchuan2017/vue-utils.git
git@gitee.com:xuebingchuan2017/vue-utils.git
xuebingchuan2017
vue-utils
vue-utils
master

搜索帮助