Skip to content

Commit

Permalink
Merge pull request #249 from halfzebra/fix-public-url
Browse files Browse the repository at this point in the history
fix(Webpack Config): Fixed PUBLIC_URL token substitution
  • Loading branch information
halfzebra authored Apr 21, 2018
2 parents 8e35f78 + 9a46545 commit 49fdca0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ module.exports = {
loader: require.resolve('string-replace-loader'),
query: {
search: '%PUBLIC_URL%',
replace: publicUrl
replace: publicUrl,
flags: 'g'
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ module.exports = {
loader: require.resolve('string-replace-loader'),
query: {
search: '%PUBLIC_URL%',
replace: publicUrl
replace: publicUrl,
flags: 'g'
}
},
{
Expand Down

0 comments on commit 49fdca0

Please sign in to comment.