Created
October 26, 2016 09:25
-
-
Save YurySolovyov/c4efd06a10dd9f0736613b5b0c031d5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.babelrc b/.babelrc | |
index 45c1a9f..022b341 100644 | |
--- a/.babelrc | |
+++ b/.babelrc | |
@@ -1,5 +1,9 @@ | |
{ | |
- "presets": ["es2015", "stage-2", "react"], | |
+ "presets": [ | |
+ "node6", | |
+ "stage-2", | |
+ "react" | |
+ ], | |
"plugins": [ | |
"syntax-class-properties", | |
"transform-class-properties" | |
diff --git a/package.json b/package.json | |
index 24df422..2804384 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -51,10 +51,9 @@ | |
"babel-core": "6.17.0", | |
"babel-eslint": "7.0.0", | |
"babel-loader": "6.2.5", | |
- "babel-plugin-add-module-exports": "0.2.1", | |
"babel-plugin-syntax-class-properties": "6.13.0", | |
"babel-plugin-transform-class-properties": "6.16.0", | |
- "babel-preset-es2015": "6.16.0", | |
+ "babel-preset-node6": "11.0.0", | |
"babel-preset-react": "6.16.0", | |
"babel-preset-stage-2": "6.17.0", | |
"css-loader": "0.25.0", | |
diff --git a/webpack.config.js b/webpack.config.js | |
index fa3df45..3117426 100644 | |
--- a/webpack.config.js | |
+++ b/webpack.config.js | |
@@ -54,7 +54,7 @@ module.exports = { | |
] | |
}, | |
plugins: [ | |
- new webpack.optimize.UglifyJsPlugin({ minimize: true, comments: false, compress: { warnings: false } }), | |
+ // new webpack.optimize.UglifyJsPlugin({ minimize: true, comments: false, compress: { warnings: false } }), | |
new webpack.DefinePlugin({ 'process.env': { 'NODE_ENV': '"production"' } }), | |
new ExtractTextPlugin('main.css', { allChunks: true }), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment