Skip to content

Conversation

@Blackgan3
Copy link
Collaborator

改动点

css if 条件判断功能,对于 import css 文件采用代理fs读取文件能力实现,替换postcss方案

end: comment.index + content.length,
content: content
})
proxyReadFile = function (path, options, callback) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两函数没意义

Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个你直接代理最后一个参数不就好了,不需要判断这些

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants