Created
August 5, 2019 22:38
-
-
Save hugolcouto/7d28d9223e2d89ba6b0a9b342b6acdde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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