mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-11 16:58:14 +00:00
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:
parent
cb72bf4e82
commit
f8498ce70c
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue