ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit f2340bb430c354c89a58f47401d2f316cfb77597
parent 48c5502f667baf8790a3e0ebc7f578e1fd7c62d5
Author: Konstantin Tarkus <hello@tarkus.me>
Date:   Wed,  6 Apr 2016 21:44:59 +0300

Merge branch 'oliviertassinari-production-improvement'

Diffstat:
Mpackage.json | 3+++
Mtools/webpack.config.js | 9+++++++--
2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json @@ -46,6 +46,9 @@ "babel-jest": "^9.0.3", "babel-loader": "^6.2.4", "babel-plugin-react-transform": "^2.0.2", + "babel-plugin-transform-react-constant-elements": "^6.5.0", + "babel-plugin-transform-react-inline-elements": "^6.6.5", + "babel-plugin-transform-react-remove-prop-types": "^0.2.4", "babel-plugin-transform-runtime": "^6.6.0", "babel-preset-es2015": "^6.6.0", "babel-preset-node5": "^11.0.1", diff --git a/tools/webpack.config.js b/tools/webpack.config.js @@ -65,6 +65,11 @@ const config = { ], plugins: [ 'transform-runtime', + ...DEBUG ? [] : [ + 'transform-react-remove-prop-types', + 'transform-react-constant-elements', + 'transform-react-inline-elements', + ], ], }, }, @@ -178,7 +183,7 @@ const clientConfig = extend(true, {}, config, { // https://webpack.github.io/docs/list-of-plugins.html#occurrenceorderplugin new webpack.optimize.OccurenceOrderPlugin(true), - ...(DEBUG ? [] : [ + ...DEBUG ? [] : [ // Search for equal or similar files and deduplicate them in the output // https://webpack.github.io/docs/list-of-plugins.html#dedupeplugin @@ -196,7 +201,7 @@ const clientConfig = extend(true, {}, config, { // A plugin for a more aggressive chunk merging strategy // https://webpack.github.io/docs/list-of-plugins.html#aggressivemergingplugin new webpack.optimize.AggressiveMergingPlugin(), - ]), + ], ], // Choose a developer tool to enhance debugging