1 Star 1 Fork 1

soxueren / vueupload

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 762 Bytes
一键复制 编辑 原始数据 按行查看 历史
yanfa17 提交于 2020-07-31 14:11 . first commit
module.exports = {
runtimeCompiler: true,
configureWebpack: (config) => {
config.module.rules.push({
test: /\.worker.js$/,
use: {
loader: 'worker-loader',
options: { inline: true, name: 'workerName.[hash].js' }
}
})
if (process.env.NODE_ENV === 'production') {
// 为生产环境修改配置...
} else {
// 为开发环境修改配置...
}
},
parallel: false,
chainWebpack: (config) => {
config.output.globalObject("this");
config.module
.rule('js')
.exclude
.add(/\.worker\.js$/)
},
publicPath: "./",
outputDir: "./lib",
assetsDir: "",
css: {
modules: false,
sourceMap: true,
},
devServer: {
port: 8081,
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/soxueren/vueupload.git
git@gitee.com:soxueren/vueupload.git
soxueren
vueupload
vueupload
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891