diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-24 12:27:08 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-24 12:27:08 +0800 |
commit | a88e8ffe79c2401e41460966a552f253d44779a7 (patch) | |
tree | 64c9862a172e0e2f6e0b4555e1d121a3612d723f /packages | |
parent | 5c88f43e15f4cf087b0c3fee6344b1a8724874b1 (diff) | |
download | dexon-0x-contracts-a88e8ffe79c2401e41460966a552f253d44779a7.tar.gz dexon-0x-contracts-a88e8ffe79c2401e41460966a552f253d44779a7.tar.zst dexon-0x-contracts-a88e8ffe79c2401e41460966a552f253d44779a7.zip |
Have source-map-loader ignore node_modules packages
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/webpack.config.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/website/webpack.config.js b/packages/website/webpack.config.js index f9abeb27c..b5e9cf6dd 100644 --- a/packages/website/webpack.config.js +++ b/packages/website/webpack.config.js @@ -1,6 +1,6 @@ const path = require('path'); const webpack = require('webpack'); -const UglifyJsPlugin = require('uglifyjs-webpack-plugin') +const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); module.exports = { entry: ['./ts/index.tsx'], @@ -25,6 +25,11 @@ module.exports = { { test: /\.js$/, loader: 'source-map-loader', + exclude: [ + // instead of /\/node_modules\// + path.join(process.cwd(), 'node_modules'), + path.join(process.cwd(), '../..', 'node_modules'), + ], }, { test: /\.tsx?$/, |