HtmlWebpackPlugin 报错
- Dominant language
- JavaScript
- Stars
- 721
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
使用 iview-cli 脚手架搭建项目后, 运行npm run build 报错;

搜索了很久。不知道什么问题,最后试着在

此处添加了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