Skip to content

Commit

Permalink
fix: set host, proxy false
Browse files Browse the repository at this point in the history
  • Loading branch information
hubcarl committed Jun 9, 2018
1 parent e9ff6e8 commit 4e09a2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports.getDllWebpackConfig = (config, option = {}) => {
const resolveLoader = config.resolveLoader;
const cdn = config.cdn;
const cache = config.cache;
const host = config.host;
const configLoaders = config.loaders || {};
const configPlugins = config.plugins || {};
const loaders = {};
Expand All @@ -57,7 +58,7 @@ exports.getDllWebpackConfig = (config, option = {}) => {
}
}
dllArray.forEach(item => {
const builderConfig = Object.assign({}, dllConfig, { cache, prefix, entry: {}, dll: item, publicPath, buildPath, alias, externals, resolveLoader, install, cdn, loaders, plugins }, item.webpackConfig);
const builderConfig = Object.assign({}, dllConfig, { host, cache, prefix, entry: {}, dll: item, publicPath, buildPath, alias, externals, resolveLoader, install, cdn, loaders, plugins }, item.webpackConfig);
if (option.onlyView || utils.checkDllUpdate(config, item)) {
dllWebpackConfig.push(new WebpackDllBuilder(builderConfig).create());
}
Expand Down
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Config {

get proxy() {
const config = this.config;
return this.dev && this.utils.isTrue(config.proxy);
return this.dev && !config.host && this.utils.isTrue(config.proxy);
}

get prefix() {
Expand Down

0 comments on commit 4e09a2c

Please sign in to comment.