This plugin will add pug-plain-loader for using Pug in Vue single file component (
.vue
).
And add pug-loader for importing.pug
file directly.
npm install -D pug gridsome-plugin-pug
# or
yarn add -D pug gridsome-plugin-pug
module.exports = {
plugins: [
{
use: 'gridsome-plugin-pug',
options: {
pug: { /* Options for `pug-plain-loader` */ },
pugLoader: { /* Options for `pug-loader` */ }
}
}
]
};