-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pug support #38
Comments
Hi, you can use module.exports = {
chainWebpack: config => {
config.module
.rule('pug')
.test(/\.pug$/)
.use('pug-plain-loader')
.loader('pug-plain-loader')
}
} |
Hello, I'm still seeing the same error, I'm not using For example: src/pages/About.vue: <template lang="pug">
layout
h1 About us
p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error doloremque omnis animi, eligendi magni a voluptatum, vitae, consequuntur rerum illum odit fugit assumenda rem dolores inventore iste reprehenderit maxime! Iusto.
</template> This is my current module.exports = {
chainWebpack: config => {
config.module
.rule('pug')
.test(/\.(pug|vue)$/)
.use('pug-plain-loader')
.loader('pug-plain-loader')
},
plugins: [
{
use: '@gridsome/source-filesystem',
options: {
path: 'blog/**/*.md',
typeName: 'Post',
route: '/blog/:slug'
}
}
]
} I'm using Pug inside SFC Vue files. |
Sorry, I just notices there is a bug with module.exports = function (api) {
api.chainWebpack(config => {
config.module
.rule('pug')
.test(/\.pug$/)
.use('pug-plain-loader')
.loader('pug-plain-loader')
})
} |
That works, thanks! Little typo:
|
I'm reopening this, since this is related to an upcoming fix. |
Closing this as it's been fixed by: 2cc5850 |
thank you @hjvedvik that was it in my case ... |
Just for reference if anyone else googles this: https://github.com/gluons/gridsome-plugin-pug |
Hello guys,
I tried to add support for Pug templates by doing:
Then changed an HTML template from:
To:
And I'm seeing this error:
Is there an easy way to accomplish this?
Cheers,
VA
The text was updated successfully, but these errors were encountered: