0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-20 17:10:11 -05:00

prevent source map in demo builds

This commit is contained in:
liabru 2021-12-15 17:29:18 +00:00
parent afa467aad6
commit f1ba9b583b
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,4 +1,5 @@
.idea .idea
*.map
node_modules node_modules
npm-debug.log npm-debug.log
docs docs
@ -15,4 +16,4 @@ test/browser/refs
test/node/diffs test/node/diffs
test/node/refs test/node/refs
__snapshots__ __snapshots__
__compare__ __compare__

View file

@ -29,7 +29,7 @@ License ${pkg.license}`;
return { return {
entry: { [name]: './demo/src/index.js' }, entry: { [name]: './demo/src/index.js' },
node: false, node: false,
devtool: 'source-map', devtool: devServer ? 'source-map' : 'none',
output: { output: {
library: 'MatterDemo', library: 'MatterDemo',
libraryTarget: 'umd', libraryTarget: 'umd',