Skip to content

Commit

Permalink
avoid webpack-dev-server 2.7.0 webpack/webpack-dev-server#1021
Browse files Browse the repository at this point in the history
  • Loading branch information
jraller committed Aug 8, 2017
1 parent 6946733 commit 3cdd7c7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 35 deletions.
4 changes: 0 additions & 4 deletions app/scripts/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ export function updateCandidateList(state: State) {
}
}

console.log('pre sort', state.candidateList, state.sortOrder);

sortCandidateList(state.candidateList, state.sortOrder);

console.log('post sort', state.candidateList, state.sortOrder);
}

export function eliminate(state: State, candidate: string|string[]): void {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
"protractor": "^5.1.2",
"resolve-url-loader": "^2.1.0",
"sass-loader": "^6.0.6",
"sinon": "^3.0.0",
"sinon": "^3.1.0",
"sinon-chai": "^2.12.0",
"stats-webpack-plugin": "^0.6.1",
"style-loader": "^0.18.2",
"ts-loader": "^2.3.2",
"ts-node": "^3.3.0",
"tslint": "^5.5.0",
"tslint": "^5.6.0",
"tslint-loader": "^3.5.3",
"typescript": "^2.4.2",
"url-loader": "^0.5.9",
Expand All @@ -73,7 +73,7 @@
"wallaby-vue-compiler": "^1.0.2",
"wallaby-webpack": "0.0.39",
"watchpack": "^1.4.0",
"webpack": "^3.4.1",
"webpack": "^3.5.1",
"webpack-dev-middleware": "^1.12.0",
"webpack-dev-server": "^2.6.1",
"webpack-lighthouse-plugin": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const commonConfig = merge([
},
output: {
path: PATHS.build,
publicPath: '/dist',
publicPath: '/',
filename: '[name].js'
},
module: {
Expand Down
43 changes: 16 additions & 27 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,29 @@ module.exports = merge([
{
devtool: 'source-map',
devServer: {
contentBase: path.resolve(__dirname, 'app'),
compress: true,

// Enable history API fallback so HTML5 History API based
// routing works. Good for complex setups.
historyApiFallback: true,

// Parse host and port from env to allow customization.
//
// If you use Docker, Vagrant or Cloud9, set
// host: options.host || '0.0.0.0';
//
// 0.0.0.0 is available to all network devices
// unlink default `localhost`.
compress: true, //gzip
contentBase: path.resolve(__dirname, 'app'), // for static files
disableHostCheck: true, // bypass host checking
historyApiFallback: {
disableDotRule: true
},
host: process.env.HOST,
hot: false, // for now
inline: true, // alternative is iframe
lazy: false,
noInfo: false,
open: false, //open web browser
openPage: '',
port: 8000, // process.env.PORT,

// can open both
// http://localhost:8000/webpack-dev-server/
// and
// http://localhost:8000/

// open: true,

overlay: {
errors: true,
warnings: true
},

publicPath: '/',

// Display only errors to reduce the amount of output.
stats: 'errors-only',

quiet: false,
stats: 'errors-only', // minimal, normal, detailed, verbose
// sockjsPrefix: '/app',
useLocalIp: false,
watchContentBase: true,
watchOptions: {
aggregateTimeout: 300
Expand Down

0 comments on commit 3cdd7c7

Please sign in to comment.