iview / iview/iview-cli

HtmlWebpackPlugin 报错

Open
#3 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
721
Forks
139
PR merge metrics
No merged PRs in 30d

Description

使用 iview-cli 脚手架搭建项目后, 运行npm run build 报错;
![image](https://cloud.githubusercontent.com/assets/10364500/23742899/aaf32d3a-04e9-11e7-82d1-6dc7ae742742.png)

搜索了很久。不知道什么问题,最后试着在
![image](https://cloud.githubusercontent.com/assets/10364500/23742907/b0ff5a28-04e9-11e7-947a-0a4855ae767a.png)

此处添加了ejs之后。可以编译了。但是编译的文件中
htmlWebpackPlugin.files
相关的代码无法别编译。全部已原样显示出来了。
请问怎么解决。新手请多指导一下。
(我现在暂时没用hash,虽然不影响对iview的学习和使用,但是我还是想请教大神帮我解答一下学习过程中的困惑)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with the iview-cli scaffold by running npm run build, then inspect the HtmlWebpackPlugin and ejs-related configuration mentioned in the report. Compare the generated output with the htmlWebpackPlugin.files expressions; done means the build completes without the reported error and those expressions are compiled rather than shown literally.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.