Unable to use const path variables in gulp plugins? #2680
Unanswered
SamuelMiller
asked this question in
Help
Replies: 1 comment
-
Plugin issues are not issues for the core gulp repo. I'll move this to a "help" discussion. |
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
-
I am not sure if this is a bug, or if I am doing something wrong. I am unable to use const ${variables} in gulp plugins.
I've declared various const file paths in my gulpfile.js as in the following:
I want to be able to use these const variables not only for input and output but also within a plugin's pipe stream. I am able to do this:
But not this:
nor this,
Although there are no errors in the terminal, the output file is incomplete--missing CSS selectors? It appears the purgecss file path variables are not being properly passed. Maybe an issue with the plugin itself, is that is not able to handle path variables? I've found issues with other gulp plugins as well when passing a path URL as a const variable.
Beta Was this translation helpful? Give feedback.
All reactions