Skip to content

Commit c7cb356

Browse files
committed
Include replacing "public" in function path
1 parent 874d556 commit c7cb356

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)