mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
feat(deps): benchpressjs@2.2.1 (#8887)
Better warnings, faster template compiles
This commit is contained in:
@@ -81,9 +81,7 @@ const buildCustomTemplates = async (config) => {
|
||||
|
||||
await Promise.all(templatesToBuild.map(async (template) => {
|
||||
const source = await meta.templates.processImports(paths, template.path, template.text);
|
||||
const compiled = await Benchpress.precompile(source, {
|
||||
minify: global.env !== 'development',
|
||||
});
|
||||
const compiled = await Benchpress.precompile(source, { filename: template.path });
|
||||
await fs.promises.writeFile(template.fullpath.replace(/\.tpl$/, '.js'), compiled);
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user