mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
chore: minify template files
This commit is contained in:
@@ -74,10 +74,20 @@ module.exports = {
|
||||
// https://github.com/wycats/handlebars.js/issues/1134
|
||||
{
|
||||
test: /\.hbs$/,
|
||||
loader: nodeModDir + 'handlebars-loader/index.js',
|
||||
options: {
|
||||
runtime: srcDir + 'lib/handlebars.js'
|
||||
}
|
||||
use: [
|
||||
{
|
||||
loader: nodeModDir + 'handlebars-loader/index.js',
|
||||
options: {
|
||||
runtime: srcDir + 'lib/handlebars.js'
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: 'html-minifier-loader',
|
||||
options: {
|
||||
ignoreCustomFragments: [/\{\{\{[^}]+\}\}\}/, /\{\{[^}]+\}\}/]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.json$/,
|
||||
|
||||
Reference in New Issue
Block a user