Browse Source

在开发环境和生产环境下编译后,都能正常启动程序

dengdx 3 weeks ago
parent
commit
9a992e29a5
2 changed files with 2 additions and 1 deletions
  1. 1 0
      config/dev.ts
  2. 1 1
      config/index.ts

+ 1 - 0
config/dev.ts

@@ -12,6 +12,7 @@ export default {
   },
   mini: {},
   h5: {
+    publicPath: '/',
     devServer: {
       proxy: {
         '/dr': {

+ 1 - 1
config/index.ts

@@ -85,7 +85,7 @@ export default defineConfig<'webpack5'>(async (merge) => {
             configFile: path.resolve(__dirname, '../tsconfig.json'), // 必须指向存在的 tsconfig
           }]);
         // 打开详细日志
-        chain.mode('production').stats('verbose');
+        //chain.mode('production').stats('verbose');
         chain.merge({
           resolve: {
             fallback: {