Skip to content

debug postcss transform in vue#21

Merged
nighca merged 1 commit intoqiniu:masterfrom
nighca:fix-vue-postcss
Sep 26, 2017
Merged

debug postcss transform in vue#21
nighca merged 1 commit intoqiniu:masterfrom
nighca:fix-vue-postcss

Conversation

@nighca
Copy link
Collaborator

@nighca nighca commented Sep 20, 2017

postcss 的 plugins 在 vue-loader 里会被 stringify 成 [null],这里对. vue 文件中的样式内容不再配置单独的 postcss-loader,而是通过 vue-loader 的 postcss 选项传入 postcss 配置,交给 vue-loader 的 style-compiler 调用 postcss 处理。

.vue 文件中的样式的 postcss 配置由外部在配置 vue 这个 transforms 时指定,而不是使用外部对其它样式内容的 postcss 配置。因为前者是一份,后者是多份,没法自动选择使用后者中某一项。

Copy link
Contributor

@doxiaodong doxiaodong left a comment

Choose a reason for hiding this comment

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

这个我看不出问题

@nighca nighca merged commit 138a8c1 into qiniu:master Sep 26, 2017
@nighca nighca deleted the fix-vue-postcss branch September 26, 2017 09:54
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.

2 participants