textnavi/static/bower_components/choices.js/server.js

14 lines
485 B
JavaScript

var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config.dev');
var opn = require('opn');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
historyApiFallback: true,
quiet: true, // lets WebpackDashboard do its thing
}).listen(3000, 'localhost', function(err, result) {
if (err) console.log(err);
opn('http://localhost:3000');
console.log('Listening at localhost:3000');
});