Trying to use gulp-useref inside Twig templates. to work across multiple environment, I need to use a template tag inside the path of the output file like so:
but the bundle.css file gets created inside a {{siteUrl}}assets/css/ folder. I understand why, but I couldn't find a workaround. Is there a way to pass another file destination, so I can keep the same HTML (Twig) output but have the file go in the proper destination - /assets/css/bundle.js ?
Hi!
Trying to use
gulp-useref
inside Twig templates. to work across multiple environment, I need to use a template tag inside the path of the output file like so:This compiles to the ouput I want:
but the
bundle.css
file gets created inside a{{siteUrl}}assets/css/
folder. I understand why, but I couldn't find a workaround. Is there a way to pass another file destination, so I can keep the same HTML (Twig) output but have the file go in the proper destination -/assets/css/bundle.js
?Thanks in advance for your pointers! :)