aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/webpack.config.js
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-24 12:27:08 +0800
committerFabio Berger <me@fabioberger.com>2018-05-24 12:27:08 +0800
commita88e8ffe79c2401e41460966a552f253d44779a7 (patch)
tree64c9862a172e0e2f6e0b4555e1d121a3612d723f /packages/website/webpack.config.js
parent5c88f43e15f4cf087b0c3fee6344b1a8724874b1 (diff)
downloaddexon-sol-tools-a88e8ffe79c2401e41460966a552f253d44779a7.tar
dexon-sol-tools-a88e8ffe79c2401e41460966a552f253d44779a7.tar.gz
dexon-sol-tools-a88e8ffe79c2401e41460966a552f253d44779a7.tar.bz2
dexon-sol-tools-a88e8ffe79c2401e41460966a552f253d44779a7.tar.lz
dexon-sol-tools-a88e8ffe79c2401e41460966a552f253d44779a7.tar.xz
dexon-sol-tools-a88e8ffe79c2401e41460966a552f253d44779a7.tar.zst
dexon-sol-tools-a88e8ffe79c2401e41460966a552f253d44779a7.zip
Have source-map-loader ignore node_modules packages
Diffstat (limited to 'packages/website/webpack.config.js')
-rw-r--r--packages/website/webpack.config.js7
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?$/,