About "rule.source.input.file“ #1862
Unanswered
CheaterScript
asked this question in
Q&A
Replies: 1 comment
-
Sorry, I don’t know. It depends on why Tailwind change the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have used
tailwindcss
andpostcss-px-to-viewport-8-with-include
in a Vue3 project. Below is my configuration:postcss-px-to-viewport
provides an 'include' configuration to filter the files that need to be processed. Below is its implementation code:The issue lies with
'rule.source.input.file'
. I have a Vue page component with the path"E:/.../src/views/home/index.vue"
. When I place the postcss-px-to-viewport configuration as the last item in the Postcss plugins, after tailwindcss and autoprefixer, I observe that 'rule.source.input.file' is not"E:/.../src/views/home/index.vue"
but instead the merged version of.../index.html
. However, when I place postcss-px-to-viewport at the beginning of the plugins configuration, the path is correct. This discrepancy prevents the postcss-px-to-viewport 'include' configuration from having the intended effect. How can I fix this issue?Beta Was this translation helpful? Give feedback.
All reactions