mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
all via webpack-dev-server script #153
This commit is contained in:
parent
dcdd5ac31d
commit
b0363570a8
@ -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",
|
||||
|
@ -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/');
|
||||
});
|
Loading…
Reference in New Issue
Block a user