Skip to content

Commit 71ddba0

Browse files
stephanebissonStephane Bisson
andauthored
Add source-map for local debugging (#307)
Co-authored-by: Stephane Bisson <sbisson@wikimedia.org>
1 parent 8993f22 commit 71ddba0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

scripts/zip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mkdir Wikipedia
1111

1212
TARGET_STORE=$TARGET node scripts/manifest.js > Wikipedia/manifest.webapp
1313
TARGET_STORE=$TARGET INSTRUMENTATION=1 MANIFEST_FILE=./Wikipedia/manifest.webapp npm run build
14-
cp -r dist Wikipedia/
14+
cp dist/main.js Wikipedia/
1515
cp -r images Wikipedia/
1616
cp index.html Wikipedia/
1717

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const StylelintPlugin = require('stylelint-webpack-plugin')
55
const TerserPlugin = require('terser-webpack-plugin')
66

77
module.exports = {
8+
devtool: 'source-map',
89
entry: './src/index.js',
910
output: {
1011
filename: 'main.js',

0 commit comments

Comments
 (0)