SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[mod] gruntfile: do some polish (no functional change)
Markus Heiser8c4c4259d4f9
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.jsindex 006d64417..83989397d 100644--- a/searx/static/themes/simple/gruntfile.js+++ b/searx/static/themes/simple/gruntfile.js@@ -2,8 +2,6 @@module.exports = function(grunt) {- const path = require('path');-grunt.initConfig({_brand: '../../../../src/brand',@@ -13,7 +11,16 @@ module.exports = function(grunt) {watch: {scripts: {files: ['gruntfile.js', 'src/**'],- tasks: ['eslint', 'copy', 'concat', 'svg2jinja', 'uglify', 'image', 'less:development', 'less:production']+ tasks: [+ 'eslint',+ 'copy',+ 'concat',+ 'uglify',+ 'less:development',+ 'less:production',+ 'image',+ 'svg2jinja'+ ]}},eslint: {@@ -78,14 +85,18 @@ module.exports = function(grunt) {},files: {'js/searxng.head.js': ['src/js/head/*.js'],- 'js/searxng.js': ['src/js/main/*.js', '../__common__/js/*.js', './node_modules/autocomplete-js/dist/autocomplete.js']+ 'js/searxng.js': [+ 'src/js/main/*.js',+ '../__common__/js/*.js',+ './node_modules/autocomplete-js/dist/autocomplete.js'+ ]}}},uglify: {options: {output: {- comments: 'some'+ comments: 'some'},ie8: false,warnings: true,@@ -100,16 +111,6 @@ module.exports = function(grunt) {}}},- image: {- svg4web: {- options: {- svgo: ['--config', 'svg4web.svgo.js']- },- files: {- '<%= _templates %>/__common__/searxng-wordmark.min.svg': '<%= _brand %>/searxng-wordmark.svg'- }- }- },less: {development: {options: {@@ -137,6 +138,16 @@ module.exports = function(grunt) {}},},+ image: {+ svg4web: {+ options: {+ svgo: ['--config', 'svg4web.svgo.js']+ },+ files: {+ '<%= _templates %>/__common__/searxng-wordmark.min.svg': '<%= _brand %>/searxng-wordmark.svg'+ }+ }+ },svg2jinja: {all: {src: {@@ -165,7 +176,6 @@ module.exports = function(grunt) {},});-grunt.registerMultiTask('svg2jinja', 'Create Jinja2 macro', function() {const ejs = require('ejs'), svgo = require('svgo');const icons = {}@@ -240,10 +250,10 @@ module.exports = function(grunt) {'stylelint','copy','concat',- 'svg2jinja','uglify',- 'image','less:development',- 'less:production'+ 'less:production',+ 'image',+ 'svg2jinja',]);};