diff options
Diffstat (limited to 'examples/webpack.config.js')
-rw-r--r-- | examples/webpack.config.js | 33 |
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') + }) + ] + +}); |