summaryrefslogtreecommitdiffstats
path: root/examples/webpack.config.js
diff options
context:
space:
mode:
authorFrancesco <firefelix@gmail.com>2015-06-29 21:59:19 +0200
committerFrancesco <firefelix@gmail.com>2015-06-29 21:59:19 +0200
commit38bcbea671ac414323d3197df28d58be33217447 (patch)
tree511ff20593f1c2dafa00a17c4751e3550aac3923 /examples/webpack.config.js
parent8addadfbb3f29eeb709149fa7465ff4c9412bdb6 (diff)
downloadreact-autosize-textarea-38bcbea671ac414323d3197df28d58be33217447.zip
react-autosize-textarea-38bcbea671ac414323d3197df28d58be33217447.tar.gz
react-autosize-textarea-38bcbea671ac414323d3197df28d58be33217447.tar.bz2
added examples and bundle for live demo
Diffstat (limited to 'examples/webpack.config.js')
-rw-r--r--examples/webpack.config.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/examples/webpack.config.js b/examples/webpack.config.js
new file mode 100644
index 0000000..0ba53ec
--- /dev/null
+++ b/examples/webpack.config.js
@@ -0,0 +1,33 @@
+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: [
+ 'webpack/hot/dev-server',
+ paths.EXAMPLES + '/examples.js'
+ ],
+
+ devtool: 'source-map',
+
+ devServer: {
+ contentBase: paths.EXAMPLES,
+ hot: true,
+ inline: true,
+ port: '8080'
+ },
+
+ plugins: [
+ new webpack.DefinePlugin({
+ 'process.env.NODE_ENV': JSON.stringify('development')
+ })
+ ]
+
+});