Jelajahi Sumber

fix:打包路径

guotianliang 4 tahun lalu
induk
melakukan
8ea70def7a
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      vue.config.js

+ 3 - 2
vue.config.js

@@ -1,8 +1,9 @@
 const fs = require('fs');
 // const copywebpackplugin = require('copy-webpack-plugin');
 // const { name } = require("./package.json");
-const name = 'dist';
-publicPath = process.env.NODE_ENV === "development" ? "/" : `/${name}`;
+// const name = 'dist';
+// publicPath = process.env.NODE_ENV === "development" ? "/" : `/${name}`;
+publicPath = '/';
 module.exports = {
   publicPath: publicPath, //相对路径
   outputDir: name, //打包名称