-
Notifications
You must be signed in to change notification settings - Fork 392
feat: rewrite fs for css #2369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: rewrite fs for css #2369
Conversation
| end: comment.index + content.length, | ||
| content: content | ||
| }) | ||
| proxyReadFile = function (path, options, callback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这两函数没意义
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你下面写个const readfile = proxyReadfile||rawReadfile就行了
|
|
||
| content = stripContentCondition(content, defs) | ||
| proxyReadFile = function (path, options, callback) { | ||
| let cb = callback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个你直接代理最后一个参数不就好了,不需要判断这些
改动点
css if 条件判断功能,对于 import css 文件采用代理fs读取文件能力实现,替换postcss方案