From f1ba9b583ba92a56d307d63c850a0330d26bbd5e Mon Sep 17 00:00:00 2001 From: liabru Date: Wed, 15 Dec 2021 17:29:18 +0000 Subject: [PATCH] prevent source map in demo builds --- .gitignore | 3 ++- webpack.demo.config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 98d9f7f..4ce65a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .idea +*.map node_modules npm-debug.log docs @@ -15,4 +16,4 @@ test/browser/refs test/node/diffs test/node/refs __snapshots__ -__compare__ \ No newline at end of file +__compare__ diff --git a/webpack.demo.config.js b/webpack.demo.config.js index 8d055cb..a46cb82 100644 --- a/webpack.demo.config.js +++ b/webpack.demo.config.js @@ -29,7 +29,7 @@ License ${pkg.license}`; return { entry: { [name]: './demo/src/index.js' }, node: false, - devtool: 'source-map', + devtool: devServer ? 'source-map' : 'none', output: { library: 'MatterDemo', libraryTarget: 'umd',