Answer the question
In order to leave comments, you need to log in
How to compile Pug to static HTML using Brunch?
Hello. I've been trying to set up Brunch to compile *. pug to *. html .
The static does not come out in any way ... Tell me, please.статичный
exports.files = {
templates: {
defaultExtension: 'pug',
joinTo: {
'index.html': 'app/assets/index.pug',
}
}
};
exports.plugins = {
on: [
'pugjs-brunch'
],
pug: {
doctype: 'html',
basedir: 'app',
staticBasedir: 'app/assets',
staticPretty: true,
inlineRuntimeFunctions: false,
compileDebug: false,
sourceMap: false
}
}
Answer the question
In order to leave comments, you need to log in
I ended up using pug-brunch-static .
And about pug js -brunch :
I thought that
Static: Plain HTML files from pug templates in the assets directory
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question