Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit ecfe3c0

Browse files
committed
move webpack config to file
1 parent a7dc32b commit ecfe3c0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"scripts": {
9595
"build": "run-s build:*",
9696
"build:deptree": "depcruise --exclude '^node_modules' --output-type dot src | dot -T svg > site/dist/dependencygraph.svg",
97-
"build:webpack": "webpack --mode production --devtool source-map --output-library NetlifyClient --output-library-target umd",
97+
"build:webpack": "webpack",
9898
"ci": "run-s test build",
9999
"prepublishOnly": "npm run build:webpack",
100100
"report": "nyc report --reporter=text-lcov | coveralls",

webpack.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
mode: 'production',
3+
devtool: 'source-map',
4+
output: {
5+
library: 'NetlifyClient',
6+
libraryTarget: 'umd',
7+
},
8+
}

0 commit comments

Comments
 (0)