Store map files under .json extension

We cannot serve .map files from production servers. This makes
Popups extension difficult to debug. As a simplest solution we
decided to store map files as .json files so we can easily access
js maps files.

Changes:
 - changed webpack config to store map files under .json extension

Bug: T173491
Change-Id: Iaa55f75a8c5f3e8f1f169b3ac33241cc54f0413f
This commit is contained in:
Piotr Miazga 2017-08-29 21:18:35 +02:00
parent cb72bf4e82
commit f8498ce70c
3 changed files with 4 additions and 1 deletions

Binary file not shown.

View file

@ -24,7 +24,10 @@ conf = {
// Write each chunk (entries, here) to a file named after the entry, e.g.
// the "index" entry gets written to index.js.
filename: '[name].js'
filename: '[name].js',
// as we cannot serve .map files from production servers store map files
// with .json extension
sourceMapFilename: "[file].json"
},
entry: {
index: './src/index.js'