From 900e603d5fae21d4bf8af62bfc4698bebe97e9f7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 18 Feb 2019 18:13:43 +0100 Subject: [PATCH] define URL, not require location, this makes it easier to mock in tests --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index c3d85caf78a..d08bfa7ca39 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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,