Open sueharaluke opened 1 year ago
Hey there !
Looks like each css file save (inside mix.postCss) compiles nunjucks * how many times you saved.
and so on.
I first noticed it using tailwind, but it's reproducible with a plain css. I added inside tests folder. (https://github.com/moyus/laravel-mix-nunjucks/compare/master...sueharaluke:laravel-mix-nunjucks:master) Steps to reproduce:
tests
npm run test:watch
/tests/css/style.css
For now, I downgraded to version 1.2.0-beta.1 (which didn't have this problem, but compiles _partials to html).
1.2.0-beta.1
_partials
Thanks !
I will look into it later, thanks for your report.
Hey there !
Looks like each css file save (inside mix.postCss) compiles nunjucks * how many times you saved.
1st save = 1 compile
2nd save = 2 compiles (same njk gets compiled 2 times)
3rd save = 3 compiles (same njk gets compiled 3 times)
and so on.
I first noticed it using tailwind, but it's reproducible with a plain css. I added inside
tests
folder.(https://github.com/moyus/laravel-mix-nunjucks/compare/master...sueharaluke:laravel-mix-nunjucks:master) Steps to reproduce:
npm run test:watch
/tests/css/style.css
For now, I downgraded to version
1.2.0-beta.1
(which didn't have this problem, but compiles_partials
to html).Thanks !