Browse Source

修改 文件

test
chenJinxu 1 year ago
parent
commit
0a08b13b03
2 changed files with 3 additions and 12 deletions
  1. +2
    -12
      babel.config.js
  2. +1
    -0
      vue.config.js

+ 2
- 12
babel.config.js View File

@@ -18,16 +18,6 @@ if (IS_PROD) {
}

module.exports = {
presets: ['@vue/cli-plugin-babel/preset'],
plugins: [
[
'import',
{
libraryName: 'vant',
libraryDirectory: 'es',
style: true
},
'vant'
]
]
presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'usage', corejs: 3 }]],
plugins
};

+ 1
- 0
vue.config.js View File

@@ -44,6 +44,7 @@ module.exports = defineConfig({
assetsDir: 'static', // outputDir的静态资源(js、css、img、fonts)目录
lintOnSave: !IS_PROD,
productionSourceMap: false, // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
transpileDependencies: false,
devServer: {
port: 9093, // 端口
open: false, // 启动后打开浏览器


Loading…
Cancel
Save