Open
Description
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
to site_root/site/themes/rkt/*/*.html
I've tried the following:
.sass('source/sass/rkt.sass', 'css')
.pug('source/pug/layouts/*.pug', 'layouts')
.pug('source/pug/partials/*.pug', 'partials')
.pug('source/pug/templates/*.pug', 'templates')
.setPublicPath('site/themes/rkt')
.browserSync('laravelmix.test');
The CSS and JS compile and move fine... but all three Pug compiles fail with this error:
Error: ENOENT: no such file or directory, open '/Users/seb/Dev/Laravel Mix/laravelmix/source/pug/layouts/layouts/default.html'
So then I tried:
.pug('source/pug/layouts/*.pug', 'site/themes/rkt/layouts', {
exludePath: 'source/pug'
})
and i'm still getting this error:
Pug Compilation Failed!
Error: ENOENT: no such file or directory, open '/Users/seb/Dev/Laravel Mix/laravelmix/source/pug/layouts/site/themes/rkt/layouts/default.ht
ml'
Metadata
Metadata
Assignees
Labels
No labels