Skip to content

Commit

Permalink
feat: #15
Browse files Browse the repository at this point in the history
  • Loading branch information
hubcarl committed Mar 13, 2018
1 parent 5300494 commit 2fed25b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Expand Up @@ -90,8 +90,8 @@ class WebpackClientBuilder extends WebpackBaseBuilder {
const templateExt = globalTemplate && fs.existsSync(globalTemplate) ? path.extname(globalTemplate) : '.html';
const entryTemplate = entryFile.replace(path.extname(entryFile), templateExt);
const template = fs.existsSync(entryTemplate) ? entryTemplate : globalTemplate;
const htmlDir = config.entry.buildDir || config.prefix;
const filename = htmlDir ? `${htmlDir}/${entryName}.html` : `${entryName}.html`;
const htmlDir = this.utils.has(config.entry.buildDir) ? config.entry.buildDir : config.prefix;
const filename = htmlDir ? path.posix.join(htmlDir, `${entryName}.html`) : `${entryName}.html`;
const resource = deps && deps[`${entryName}.js`] || {};
const js = resource.js || [];
const css = resource.css || [];
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "easywebpack",
"version": "3.7.2",
"version": "3.7.3",
"description": "基于 Webpack 的前端构建工程化解决方案",
"keywords": [
"webpack",
Expand Down

0 comments on commit 2fed25b

Please sign in to comment.