打包资源配置

This commit is contained in:
qinjie 2021-08-30 16:48:09 +08:00
parent ee079657fe
commit 0212dfe7b3
1 changed files with 4 additions and 2 deletions

View File

@ -31,9 +31,11 @@ const assetsCDN = {
// vue.config.js // vue.config.js
const vueConfig = { const vueConfig = {
configureWebpack: {
// 打包资源路径 // 打包资源路径
publicPath: './', publicPath: './',
// 输出文件目录
outputDir: 'dist',
configureWebpack: {
// webpack plugins // webpack plugins
plugins: [ plugins: [
// Ignore all locale files of moment.js // Ignore all locale files of moment.js