Skip to content

Instantly share code, notes, and snippets.

@hugolcouto
Created August 5, 2019 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugolcouto/7d28d9223e2d89ba6b0a9b342b6acdde to your computer and use it in GitHub Desktop.
Save hugolcouto/7d28d9223e2d89ba6b0a9b342b6acdde to your computer and use it in GitHub Desktop.
const mix = require('laravel-mix');
// Add PUG support on Laravel's Vue
// install pug and pug-plain-loader as well!
mix.webpackConfig({
module: {
rules: [
{
test: /\.pug$/,
oneOf: [
{
resourceQuery: /^\?vue/,
use: ['pug-plain-loader']
},
{
use: ['raw-loader', 'pug-plain-loader']
}
]
}
]
}
});
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment