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

Commit

Permalink
🔥 Remove dead code in build
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Feb 17, 2017
1 parent da21b06 commit 74b4a0b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
reports
dist
test/coverage
yarn-error.log
5 changes: 0 additions & 5 deletions build/webpack.config.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ module.exports = merge(base, {
library: moduleName,
libraryTarget: 'umd',
},
externals: {
// Put external libraries like lodash here
// With their global name
// Example: 'lodash': '_'
},
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: 'static',
Expand Down
5 changes: 0 additions & 5 deletions build/webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ module.exports = merge(base, {
libraryTarget: 'commonjs2',
},
target: 'node',
externals: {
// Put external libraries like lodash here
// With their package name
// Example: 'lodash': 'lodash'
},
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: 'static',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Eduardo San Martin Morote <posva13@gmail.com>",
"license": "MIT",
"scripts": {
"dev": "webpack-dashboard -- webpack-dev-server --config build/webpack.config.dev.js",
"dev": "webpack-dashboard -- webpack-dev-server --config build/webpack.config.dev.js --open",
"test:unit": "cross-env BABEL_ENV=test karma start test/karma.conf.js --single-run",
"build:dll": "webpack --progress --config build/webpack.config.dll.js",
"postinstall": "yon run build:dll",
Expand Down

0 comments on commit 74b4a0b

Please sign in to comment.