Closed linbaicheng closed 3 years ago
Hey @linbaicheng, Could you try adding an empty object as a third parameter in here:
.pug('src/**/*.pug', 'dist',{})
@linbaicheng Can confirm that @barcadictni's workaround will work. But this seems to be a regression from this bugfix from @RikutoYamaguchi https://github.com/mikemartin/laravel-mix-pug-recursive/commit/d474cdce836204b47e6c9e7c7fc9bffceb121080
@mikemartin I'm sorry. Fixed a bug in https://github.com/mikemartin/laravel-mix-pug-recursive/pull/5
Thanks @RikutoYamaguchi for the fix. 👍
Hey @linbaicheng, Could you try adding an empty object as a third parameter in here:
.pug('src/**/*.pug', 'dist',{})
@mikemartin @barcadictni Thank you so much! 🙏
# webpack.mix.js
let mix = require('laravel-mix');
mix.pug = require('laravel-mix-pug-recursive');
mix.js('src/app.js', 'dist')
.sass('src/app.scss', 'dist')
- .pug('src/**/*.pug', 'dist')
+ .pug('src/**/*.pug', 'dist',{})
.setPublicPath('dist');
Hey @linbaicheng, Could you try adding an empty object as a third parameter in here:
.pug('src/**/*.pug', 'dist',{})
@mikemartin @barcadictni Thank you so much! 🙏
# webpack.mix.js let mix = require('laravel-mix'); mix.pug = require('laravel-mix-pug-recursive'); mix.js('src/app.js', 'dist') .sass('src/app.scss', 'dist') - .pug('src/**/*.pug', 'dist') + .pug('src/**/*.pug', 'dist',{}) .setPublicPath('dist');
👍 It's looking good.
Try adding this to the options:
.pug('src/**/*.pug', 'dist',{ excludePath: 'src' })
The background:
Run
npx mix
Report errors below: