Initial commit
This commit is contained in:
18
webpack.config.dev.js
Normal file
18
webpack.config.dev.js
Normal file
@@ -0,0 +1,18 @@
|
||||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
|
||||
commonWebpackConfig = require('./webpack.config');
|
||||
|
||||
developmentWebpackConfig = Object.assign(commonWebpackConfig, {
|
||||
cache: true,
|
||||
devtool: 'eval',
|
||||
entry: [
|
||||
'webpack-hot-middleware/client',
|
||||
'./src/index',
|
||||
],
|
||||
});
|
||||
|
||||
developmentWebpackConfig.plugins.push(new webpack.HotModuleReplacementPlugin());
|
||||
developmentWebpackConfig.plugins.push(new webpack.NoErrorsPlugin());
|
||||
|
||||
module.exports = developmentWebpackConfig;
|
||||
Reference in New Issue
Block a user