Skip to content

Commit

Permalink
feat: 如果存在同名 html 模板文件, 全局 template 配置非必须
Browse files Browse the repository at this point in the history
  • Loading branch information
hubcarl committed Aug 31, 2018
1 parent 70bcae1 commit 7ec20aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ class WebpackClientBuilder extends WebpackBaseBuilder {
config.entry = Object.assign(config.entry, { include: null, exclude: null }, config.entry.html);
}
}
globalTemplate = this.utils.normalizePath(globalTemplate, config.baseDir);
// 如果存在同名 html 模板文件, 全局 template 配置非必须
globalTemplate = globalTemplate && this.utils.normalizePath(globalTemplate, config.baseDir);

const entry = this.utils.getEntry(config, this.type);
const extMath = this.config.entry.extMatch || '.js';

let deps;
if (this.config.dll) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easywebpack",
"version": "4.5.2",
"version": "4.6.0-beta.1",
"description": "基于 Webpack 的前端构建工程化解决方案",
"keywords": [
"webpack",
Expand Down

0 comments on commit 7ec20aa

Please sign in to comment.