-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different path for compiled files #7
Comments
this works for me |
Nup doesn't work for me... I tried this slight variation:
and get this error:
|
It's like its not even obeying this: |
Hmm ok this works:
But it's just putting all the html files inside |
Ok this also works, but isn't ideal... and it seems to be running pug 3 times so compiling is really slow? which seems like its not he right way to do it?
|
Hey, sorry I'm a bit stuffed at the moment with my day job, but I will setup a test case and try to reproduce your problem. In the mean time, can you try the glob operator .pug('source/pug/**/*.pug', '../../../site/themes/rkt', {
exludePath: 'source/pug/'
}) |
Yeah I've tried that as well but I need my compiled directory to follow the same sub folder structure as the source. How can I do this?
Cheers,
On Thu, May 3, 2018 at 7:22 PM, Matej Svajger <[email protected]> wrote:
Hey, sorry I'm a bit stuffed at the moment with my day job, but I will setup a test case and try to reproduce your problem.
In the mean time, can you try the glob operator ** if it works:
.pug('source/pug/**/*.pug', '../../../site/themes/rkt', {
exludePath: 'source/pug/'
})```
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [#7 (comment)] , or mute the thread [https://github.com/notifications/unsubscribe-auth/AFNqRtVH0O_Yp4SMELs3SsnPZHaR6qyjks5tutNygaJpZM4TrpK_] .
|
any news on this? i'd like to be able to use pug with mix but this issue is still occuring |
@matejsvajger i found a fork that seems to address this issue - https://github.com/rivergod/laravel-mix-pug have you seen it? heres the commit in question: rivergod@c5658a2 |
@matejsvajger @sebszocinski I just tested the @rivergod fork and it seems to work for example
put any folders i had in my |
I was having the same problem. After debugging I realized that by now the plugin outputs the compiled files to the relative path we configure to get the templates from. Let's say that the templates are at My solution was to calculate the relative from the template filte path to the public folder:
|
@juniorgarcia yep that works for me too, cheers |
Thanks everyone. I've forked the latest from With this fix I can now compile my entire folder of pug templates:
In the meantime I've published the fork to NPM as |
Hi i'm having some trouble setting this up with different folder paths and sub-directories.
My source structure is like this:
And I need my compiled dist structure to look like this:
so I need to compile from
site_root/source/pug/*/*.pug
tosite_root/site/themes/rkt/*/*.html
I've tried the following:
The CSS and JS compile and move fine... but all three Pug compiles fail with this error:
So then I tried:
and i'm still getting this error:
The text was updated successfully, but these errors were encountered: