Skip to content

Commit

Permalink
webpack tree shaking with "npm run prod" in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian committed Jun 8, 2017
1 parent 4f2d026 commit 2a05feb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Thumbs.db
# Dependency directory
node_modules
example/node_modules
bower_components/
example/dist

# Linter
linters/
Expand Down
6 changes: 5 additions & 1 deletion example/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

{
"presets": [ "react", "es2015" ]
"presets": [
[ "es2015", { "loose": true, "modules": false } ],
"react"
]
}
1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "main.jsx",
"scripts": {
"start": "webpack-dev-server",
"prod": "webpack --optimize-minimize --env=prod --progress --profile --colors",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down

0 comments on commit 2a05feb

Please sign in to comment.