1 Star 1 Fork 0

pipe / webpack_opt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.vue.js 453 Bytes
一键复制 编辑 原始数据 按行查看 历史
pipe 提交于 2021-10-08 13:43 . add:dll vue
const path = require("path");
const webpack = require('webpack')
module.exports = {
mode: "production",
entry: {
vue: ['vue']
},
// devtool: "source-map",
output: {
filename: "dll/_dll_[name].js",
path: path.resolve(__dirname, "dist"),
library:'_dll_[name]'
},
plugins:[
new webpack.DllPlugin({
name:'_dll_[name]',
path:path.resolve(__dirname, "dist","dll/manifest.json"),
})
]
};
1
https://gitee.com/pipepandafeng/webpack_opt.git
git@gitee.com:pipepandafeng/webpack_opt.git
pipepandafeng
webpack_opt
webpack_opt
master

搜索帮助