Skip to content

Commit

Permalink
refactor(build-config): get rid of WDS and config
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbch committed Feb 19, 2018
1 parent 4e4c4e2 commit 872446e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 939 deletions.
21 changes: 1 addition & 20 deletions packages/build-config/configs/develop.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

var path = require('path');
var url = require('url');

var webpack = require('webpack');

Expand All @@ -13,14 +12,7 @@ var getAssetPath = path.join.bind(path, hopsConfig.assetPath);

module.exports = {
entry: [
require.resolve('webpack-dev-server/client') +
'?' +
url.format({
protocol: hopsConfig.https ? 'https' : 'http',
hostname: hopsConfig.host === '0.0.0.0' ? 'localhost' : hopsConfig.host,
port: hopsConfig.port,
}),
require.resolve('webpack/hot/dev-server'),
require.resolve('webpack-hot-middleware/client'),
require.resolve('../shims/develop'),
],
output: {
Expand Down Expand Up @@ -55,15 +47,4 @@ module.exports = {
aggregateTimeout: 300,
ignored: /node_modules/,
},
devServer: {
contentBase: hopsConfig.buildDir,
hot: true,
disableHostCheck: true,
overlay: {
warnings: true,
errors: true,
},
stats: 'errors-only',
https: require('../sections/dev-server-https')(),
},
};
1 change: 0 additions & 1 deletion packages/build-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"uglifyjs-webpack-plugin": "^1.1.6",
"url-loader": "^0.6.2",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.10.0",
"webpack-node-externals": "^1.6.0",
"webpack-stats-plugin": "^0.1.5"
}
Expand Down
Loading

0 comments on commit 872446e

Please sign in to comment.