We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6933808 commit 1090f76Copy full SHA for 1090f76
build/pug.js
@@ -83,9 +83,9 @@ const compileHtml = () => {
83
const html = compile(view, './pug/layout/')
84
let file
85
if (version === 'ajax') {
86
- file = view.replace('pug/', '').replace('.pug', '.html')
+ file = view.replace(`pug${path.sep}`, '').replace('.pug', '.html')
87
} else {
88
- file = view.replace('pug/views/', '').replace('.pug', '.html')
+ file = view.replace(`pug${path.sep}views${path.sep}`, '').replace('.pug', '.html')
89
}
90
// Create tree
91
mkdirp.sync(resolve(dest, dirname(file)))
0 commit comments