- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.js
More file actions
Latest commit
13 lines (12 loc) · 359 Bytes
/
Copy pathserver.js
File metadata and controls
13 lines (12 loc) · 359 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
varwebpack=require('webpack');
varWebpackDevServer=require('webpack-dev-server');
varconfig=require('./webpack.example.config.js');
newWebpackDevServer(webpack(config),{
publicPath: config.output.publicPath,
hot: true,
historyApiFallback: true
}).listen(3000,'localhost',function(err){
if(err){
returnconsole.error(err);
}
});