diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-04 22:58:50 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-04 22:58:50 +0800 |
commit | d5379ab3202030a74fb6e0947b2cf3c99e162df3 (patch) | |
tree | cb3d0cb99fe2171e7afe3c1e97a69eeba3a20b44 /packages/website | |
parent | c613b6741d7eff069c93ef1a800b67ddfb618c51 (diff) | |
download | dexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.tar dexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.tar.gz dexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.tar.bz2 dexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.tar.lz dexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.tar.xz dexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.tar.zst dexon-sol-tools-d5379ab3202030a74fb6e0947b2cf3c99e162df3.zip |
Add back sourceMap support for both dev/prod
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/webpack.config.js | 2 |
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'; |