summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/gruntfile.js
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2021-11-13 08:15:59 +0000
committerGitHub <noreply@github.com>2021-11-13 08:15:59 +0000
commitd64abb9310b2eaafffe42585f55d1a9d9457dd68 (patch)
tree14f29979515e87931c334ce58b923072c8ed6e48 /searx/static/themes/simple/gruntfile.js
parent0c70a96f57306c2dfa98adf9c6d4b958e1ad273a (diff)
parent9bf53ab9740b8ba280b9145574795da6da6956ea (diff)
Merge pull request #473 from return42/searxng-wordmark
[simple theme] SearXNG wordmark & favicon
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r--searx/static/themes/simple/gruntfile.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js
index 325a973b4..f10d00cf3 100644
--- a/searx/static/themes/simple/gruntfile.js
+++ b/searx/static/themes/simple/gruntfile.js
@@ -9,7 +9,7 @@ module.exports = function(grunt) {
watch: {
scripts: {
files: ['src/**'],
- tasks: ['eslint', 'copy', 'concat', 'uglify', 'less:development', 'less:production']
+ tasks: ['eslint', 'copy', 'concat', 'uglify', 'htmlmin', 'less:development', 'less:production']
}
},
eslint: {
@@ -95,6 +95,17 @@ module.exports = function(grunt) {
}
}
},
+ htmlmin: {
+ dist: {
+ options: {
+ removeComments: true,
+ collapseWhitespace: true
+ },
+ files: {
+ '../../../templates/__common__/searxng-wordmark.min.svg': 'src/svg/searxng-wordmark.svg'
+ }
+ }
+ },
webfont: {
icons: {
// src: 'node_modules/ionicons-npm/src/*.svg',
@@ -191,6 +202,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-contrib-htmlmin');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-less');
@@ -207,6 +219,7 @@ module.exports = function(grunt) {
'copy',
'concat',
'uglify',
+ 'htmlmin',
'less:development',
'less:production'
]);