[change] allow propTypes to be removed in production builds

Fix #254
This commit is contained in:
Nicolas Gallagher
2016-11-22 13:57:12 -08:00
parent 0b1759363d
commit 8dd39c681c
16 changed files with 72 additions and 36 deletions
+2
View File
@@ -1,5 +1,6 @@
const path = require('path')
const webpack = require('webpack')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const DIST_DIRECTORY = './dist'
@@ -14,6 +15,7 @@ module.exports = {
path: DIST_DIRECTORY
},
plugins: [
new BundleAnalyzerPlugin({ analyzerMode: 'static' }),
new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production') }),
new webpack.optimize.DedupePlugin(),
// https://github.com/animatedjs/animated/issues/40