Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

ejs生成的页面会引入多个当前页面看起来不需要的script和style文件 #8

Closed
viarotel opened this issue Apr 17, 2019 · 5 comments

Comments

@viarotel
Copy link

  1. 所有页面都引入的 script 对应了page文件夹的文件名 即使有些看上去并不需要
    2,引入的style文件是重复的
  2. 是否会影响性能
@viarotel
Copy link
Author

所有页面都引入的 script 对应了page文件夹的文件名 即使有些看上去并不需要
引入的style文件是重复的
是否会影响性能

@grapewheel
Copy link
Owner

的确有这个问题,我会修改webpack支持单独组件导入,谢谢你提醒

@grapewheel grapewheel reopened this Apr 28, 2019
@grapewheel
Copy link
Owner

grapewheel commented Apr 29, 2019

@viarotel 已修正更新,只需更新以下四个文件即可,非常感谢您的反馈!

./src/templates/page.ejs
./webpack.base.js
./webpack.dev.js
./webpack.prod.js

@viarotel
Copy link
Author

不用客气, 脚手架很好用

@grapewheel
Copy link
Owner

使用过程中有什么问题和改进可以随时提出来,再次感谢!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants