|
@@ -11,7 +11,7 @@ const CompressionWebpackPlugin = require("compression-webpack-plugin");
|
|
const productionGzipExtensions = /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i;
|
|
const productionGzipExtensions = /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i;
|
|
module.exports = {
|
|
module.exports = {
|
|
// 废弃baseUrl 一般运维会配置好的
|
|
// 废弃baseUrl 一般运维会配置好的
|
|
- publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
|
|
|
|
|
|
+ publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
|
|
//打包的输出目录
|
|
//打包的输出目录
|
|
// outputDir: "dist/",
|
|
// outputDir: "dist/",
|
|
//保存时是否校验
|
|
//保存时是否校验
|