Merge pull request #667 from metamaps/feature/update-package.json
update package.json and save a bit of bundle size
This commit is contained in:
commit
cc986368be
3 changed files with 11 additions and 9 deletions
1
.babelrc
1
.babelrc
|
@ -4,6 +4,7 @@
|
|||
"es2015"
|
||||
],
|
||||
"plugins": [
|
||||
"lodash",
|
||||
"transform-class-properties"
|
||||
]
|
||||
}
|
||||
|
|
18
package.json
18
package.json
|
@ -19,20 +19,20 @@
|
|||
"homepage": "https://github.com/metamaps/metamaps#readme",
|
||||
"dependencies": {
|
||||
"autolinker": "0.17.1",
|
||||
"babel-cli": "6.11.4",
|
||||
"babel-loader": "6.2.4",
|
||||
"babel-cli": "6.14.0",
|
||||
"babel-loader": "6.2.5",
|
||||
"babel-plugin-lodash": "^3.2.9",
|
||||
"babel-plugin-transform-class-properties": "6.11.5",
|
||||
"babel-preset-es2015": "6.9.0",
|
||||
"babel-preset-es2015": "6.14.0",
|
||||
"babel-preset-react": "6.11.1",
|
||||
"backbone": "1.0.0",
|
||||
"csv-parse": "1.1.7",
|
||||
"node-uuid": "1.2.0",
|
||||
"react": "15.3.0",
|
||||
"react-dom": "15.3.0",
|
||||
"requirejs": "2.1.1",
|
||||
"lodash": "4.16.1",
|
||||
"node-uuid": "1.4.7",
|
||||
"react": "15.3.2",
|
||||
"react-dom": "15.3.2",
|
||||
"socket.io": "0.9.12",
|
||||
"underscore": "1.4.4",
|
||||
"webpack": "1.13.1"
|
||||
"webpack": "1.13.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "^3.5.0",
|
||||
|
|
|
@ -9,6 +9,7 @@ const plugins = [
|
|||
})
|
||||
]
|
||||
if (NODE_ENV === 'production') {
|
||||
plugins.push(new webpack.optimize.DedupePlugin())
|
||||
plugins.push(new webpack.optimize.UglifyJsPlugin({
|
||||
compress: { warnings: false }
|
||||
}))
|
||||
|
|
Loading…
Reference in a new issue