-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
executable file
·34 lines (29 loc) · 847 Bytes
/
webpack.dev.js
File metadata and controls
executable file
·34 lines (29 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var webpack = require('webpack');
var webpackMerge = require('webpack-merge');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var commonConfig = require('./webpack.common.js');
var path = require('path');
module.exports = webpackMerge(commonConfig, {
devtool: '#cheap-module-eval-source-map',
entry: {
dev: [
'webpack/hot/dev-server',
]
},
output: {
path: path.join(process.cwd(), '/dist'),
publicPath: 'http://localhost:3000/',
filename: '[name].js',
pathInfo: true
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new ExtractTextPlugin('[name].css')
],
devServer: {
historyApiFallback: true,
stats: 'minimal',
inline: true,
hot: true
}
});