forked from yankouskia/Shop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.js
More file actions
32 lines (26 loc) · 746 Bytes
/
webpack.js
File metadata and controls
32 lines (26 loc) · 746 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
'use strict';
var Webpack = require('webpack'),
WebpackDevServer = require('webpack-dev-server'),
webpackConfig = Webpack(require('./webpack/webpack.config.js')),
server = {
port: 3000,
host: 'localhost',
options: {
hot: true,
publicPath: '/',
stats: {
colors: true
},
noInfo: true,
proxy: [{
path: '*',
target: 'http://localhost:3003'
}],
historyApiFallback: true
}
},
devServer;
devServer = new WebpackDevServer(webpackConfig, server.options);
devServer.listen(server.port, server.host, function () {
console.log('\nstarting app\n');
});