1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00

all via webpack-dev-server script #153

This commit is contained in:
Ivar 2016-09-11 22:37:29 +02:00 committed by Ivar Conradi Østhus
parent 1ef53117c9
commit 5e47b63b9a
2 changed files with 2 additions and 19 deletions

View File

@ -23,9 +23,8 @@
},
"scripts": {
"build": "webpack -p",
"start": "NODE_ENV=development node server",
"hot-dev-server": "webpack-dev-server --config webpack-hot-dev-server.config.js --hot --progress --colors --port 3000 --inline",
"test": "jest",
"start": "webpack-dev-server --config webpack.config.js --hot --progress --colors --port 3000",
"test": "echo 'no test'",
"test:ci": "npm run test"
},
"main": "./lib/index.js",

View File

@ -1,16 +0,0 @@
'use strict';
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
colors: true,
publicPath: config.output.publicPath,
hot: true,
historyApiFallback: true,
}).listen(3000, 'localhost', (err) => {
if (err) {
return console.log(err);
}
console.log('Listening at http://localhost:3000/');
});