diff options
author | Francesco Cioria <firefelix@gmail.com> | 2017-01-04 15:38:58 +0100 |
---|---|---|
committer | Francesco Cioria <firefelix@gmail.com> | 2017-01-04 15:38:58 +0100 |
commit | 56feeb88955bf9defd7863e12fc591fe51690c21 (patch) | |
tree | d846f8b93e1dcafd3ad7fea5458d77266c43fe5c /examples/webpack.config.build.babel.js | |
parent | 8ad64ef8459b8370901464fff95425384afd7cb0 (diff) | |
download | react-autosize-textarea-56feeb88955bf9defd7863e12fc591fe51690c21.zip react-autosize-textarea-56feeb88955bf9defd7863e12fc591fe51690c21.tar.gz react-autosize-textarea-56feeb88955bf9defd7863e12fc591fe51690c21.tar.bz2 |
refactor webpack config files
Diffstat (limited to 'examples/webpack.config.build.babel.js')
-rw-r--r-- | examples/webpack.config.build.babel.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/webpack.config.build.babel.js b/examples/webpack.config.build.babel.js new file mode 100644 index 0000000..6ebd1c4 --- /dev/null +++ b/examples/webpack.config.build.babel.js @@ -0,0 +1,20 @@ +import webpack from 'webpack'; +import webpackBase, { paths } from './webpack.base.babel'; + +export default { + ...webpackBase, + + entry: paths.ENTRY, + + plugins: [ + new webpack.DefinePlugin({ + 'process.env.NODE_ENV': JSON.stringify('production') + }), + new webpack.optimize.UglifyJsPlugin({ + compress: { + warnings: false + } + }) + ] + +}; |