Skip to content

Commit 0b2cd73

Browse files
committed
fixed 修复根路径的问题
1 parent 9f64baf commit 0b2cd73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
index: path.resolve(__dirname, "../dist/index.html"),
1111
assetsRoot: path.resolve(__dirname, "../dist"),
1212
assetsSubDirectory: "",
13-
assetsPublicPath: "/",
13+
assetsPublicPath: "./",
1414
// Gzip off by default as many popular static hosts such as
1515
// Surge or Netlify already gzip all static assets for you.
1616
// Before setting to `true`, make sure to:
@@ -43,7 +43,6 @@ module.exports = {
4343
devtool: "cheap-module-eval-source-map",
4444
// 显示eslint 错误到浏览器
4545
showEslintErrorsInOverlay: false,
46-
4746
// CSS Sourcemaps off by default because relative paths are "buggy"
4847
// with this option, according to the CSS-Loader README
4948
// (https://github.com/webpack/css-loader#sourcemaps)

0 commit comments

Comments
 (0)