Skip to content

Commit 72e80e0

Browse files
authored
Merge pull request #354 from millerds/webpack-prod-manifest
Include replacing "public" in function path during webpack build for production
2 parents 874d556 + c7cb356 commit 72e80e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module.exports = async (env, options) => {
9191
if (dev) {
9292
return content;
9393
} else {
94-
return content.toString().replace(new RegExp(urlDev, "g"), urlProd);
94+
return content.toString().replace(new RegExp(urlDev + "(?:public/)?", "g"), urlProd);
9595
}
9696
},
9797
},

0 commit comments

Comments
 (0)