Migrated to Webpack, MobX
This commit is contained in:
parent
c1ae765a16
commit
1256b8e27c
13 changed files with 2445 additions and 7203 deletions
15
server.js
Normal file
15
server.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
var webpack = require('webpack');
|
||||
var WebpackDevServer = require('webpack-dev-server');
|
||||
var config = require('./webpack.config');
|
||||
|
||||
new WebpackDevServer(webpack(config), {
|
||||
publicPath: config.output.publicPath,
|
||||
hot: true,
|
||||
historyApiFallback: true
|
||||
}).listen(3000, 'localhost', function (err, result) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
console.log('Listening at localhost:3000');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue