aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-04 22:58:50 +0800
committerFabio Berger <me@fabioberger.com>2018-10-04 22:58:50 +0800
commitd5379ab3202030a74fb6e0947b2cf3c99e162df3 (patch)
treecb3d0cb99fe2171e7afe3c1e97a69eeba3a20b44
parentc613b6741d7eff069c93ef1a800b67ddfb618c51 (diff)
downloaddexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.tar.gz
dexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.tar.zst
dexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.zip
Add back sourceMap support for both dev/prod
-rw-r--r--packages/website/webpack.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/webpack.config.js b/packages/website/webpack.config.js
index 1b213b339..ec265be93 100644
--- a/packages/website/webpack.config.js
+++ b/packages/website/webpack.config.js
@@ -17,6 +17,7 @@ const config = {
chunkFilename: 'bundle-[name].js',
publicPath: '/',
},
+ devtool: 'source-map',
resolve: {
modules: [path.join(__dirname, '/ts'), 'node_modules'],
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.md'],
@@ -90,7 +91,6 @@ const config = {
module.exports = (_env, argv) => {
let plugins = [];
if (argv.mode === 'development') {
- config.devtool = 'source-map';
config.mode = 'development';
} else {
config.mode = 'production';