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

Commit 74b4a0b

Browse files
committed
🔥 Remove dead code in build
1 parent da21b06 commit 74b4a0b

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
reports
33
dist
44
test/coverage
5+
yarn-error.log

‎build/webpack.config.browser.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ module.exports = merge(base, {
1414
library: moduleName,
1515
libraryTarget: 'umd',
1616
},
17-
externals: {
18-
// Put external libraries like lodash here
19-
// With their global name
20-
// Example: 'lodash': '_'
21-
},
2217
plugins: [
2318
new BundleAnalyzerPlugin({
2419
analyzerMode: 'static',

‎build/webpack.config.common.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ module.exports = merge(base, {
99
libraryTarget: 'commonjs2',
1010
},
1111
target: 'node',
12-
externals: {
13-
// Put external libraries like lodash here
14-
// With their package name
15-
// Example: 'lodash': 'lodash'
16-
},
1712
plugins: [
1813
new BundleAnalyzerPlugin({
1914
analyzerMode: 'static',

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Eduardo San Martin Morote <[email protected]>",
66
"license": "MIT",
77
"scripts": {
8-
"dev": "webpack-dashboard -- webpack-dev-server --config build/webpack.config.dev.js",
8+
"dev": "webpack-dashboard -- webpack-dev-server --config build/webpack.config.dev.js --open",
99
"test:unit": "cross-env BABEL_ENV=test karma start test/karma.conf.js --single-run",
1010
"build:dll": "webpack --progress --config build/webpack.config.dll.js",
1111
"postinstall": "yon run build:dll",

0 commit comments

Comments
 (0)