Make html page use laravel-mix and pugjs
$ npm install --save-dev laravel-mix-html-pug
// webpack.mix.js
let mix = require('laravel-mix');
mix.setPublicPath('dist');
mix.pug = require('laravel-mix-html-pug');
/**
* HTML Views
*/
mix.html('src/views', 'public/views');
// ...
- Documentation for Pug can be found on the Pug website.
- Documentation for Mix repositories can be found on the Github
- laravel-mix-pug - API for this src/tasks module
- laravel-blade-jade - API for this README.md
MIT @ JMJ