Skip to content

Commit 3ee8b42

Browse files
authored
Merge pull request #43 from iroy2000/fix-assets-to-deploy-relative-path
fix assets to deploy to relative path
2 parents 1f21fce + 9d77dd5 commit 3ee8b42

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

config/production.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"env": "production"
2+
"env": "production",
3+
"publicPath": "./"
34
}

config/release.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"env": "release"
2+
"env": "release",
3+
"publicPath": "./"
34
}

webpack.config.prod.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ if (IS_S3_DEPLOY) {
118118
});
119119

120120
webpackConfig.plugins = webpackConfig.plugins.concat(s3Config);
121-
} else {
122-
webpackConfig.output.publicPath = '/';
123121
}
124122

125123
if(config.get('optimization.analyzeMode') === true) {

0 commit comments

Comments
 (0)