Skip to content

Commit

Permalink
define URL, not require location, this makes it easier to mock in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bwindels committed Feb 18, 2019
1 parent c2d1439 commit 900e603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ module.exports = {
'process.env': {
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
},
'LANGUAGES_FILE': JSON.stringify(RIOT_LANGUAGES_FILE),
'LANGUAGES_INDEX_URL': `require(${JSON.stringify(RIOT_LANGUAGES_FILE)})`,
}),
new ExtractTextPlugin("bundles/[hash]/[name].css", {
allChunks: true,
Expand Down

0 comments on commit 900e603

Please sign in to comment.