1
0
mirror of synced 2025-12-09 07:08:17 +08:00

chore: remove handlebars

This commit is contained in:
redhoodsu
2022-12-14 20:02:56 +08:00
parent 6e0723fe25
commit d47f120184
6 changed files with 186 additions and 233 deletions

View File

@@ -94,35 +94,6 @@ module.exports = {
test: /luna-dom-highlighter\.css$/,
use: [rawLoader],
},
// https://github.com/wycats/handlebars.js/issues/1134
{
test: /\.hbs$/,
use: [
{
loader: path.resolve(
__dirname,
'./loaders/handlebars-minifier-loader.js'
),
options: {},
},
{
loader: nodeModDir + 'handlebars-loader/index.js',
options: {
runtime: srcDir + 'lib/handlebars.js',
knownHelpers: ['class', 'repeat', 'concat'],
precompileOptions: {
knownHelpersOnly: true,
},
},
},
{
loader: 'html-minifier-loader',
options: {
ignoreCustomFragments: [/\{\{\{[^}]+\}\}\}/, /\{\{[^}]+\}\}/],
},
},
],
},
],
},
plugins: [