summaryrefslogtreecommitdiffstats
path: root/examples/webpack.config.build.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webpack.config.build.js')
-rw-r--r--examples/webpack.config.build.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/webpack.config.build.js b/examples/webpack.config.build.js
new file mode 100644
index 0000000..ad387a9
--- /dev/null
+++ b/examples/webpack.config.build.js
@@ -0,0 +1,26 @@
+var path = require('path');
+var webpack = require('webpack');
+var webpackBase = require('./webpack.base');
+var assign = require('lodash/object').assign;
+
+var paths = {
+ SRC: path.resolve(__dirname, '../src'),
+ EXAMPLES: path.resolve(__dirname, '.')
+};
+
+module.exports = assign(webpackBase, {
+
+ entry: paths.EXAMPLES + '/examples.js',
+
+ plugins: [
+ new webpack.DefinePlugin({
+ 'process.env.NODE_ENV': JSON.stringify('production')
+ }),
+ new webpack.optimize.UglifyJsPlugin({
+ compress: {
+ warnings: false
+ }
+ })
+ ]
+
+});