diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-11-20 10:49:21 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-11-20 10:49:21 +0100 |
commit | 4330d7cf5d5bc9617bc778e9a7e8a469274125ee (patch) | |
tree | 53d53bf4063fcffa84cc3ab1e9c3c3a57af20c18 /searx/static/themes/simple/gruntfile.js | |
parent | c68c53acd8970cacb282f23651d3619e918ffc20 (diff) | |
download | searxng-4330d7cf5d5bc9617bc778e9a7e8a469274125ee.tar.gz searxng-4330d7cf5d5bc9617bc778e9a7e8a469274125ee.zip |
[mod] gruntfile.js - define grunt.template _brand & _templates
[1] https://gruntjs.com/api/grunt.template
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r-- | searx/static/themes/simple/gruntfile.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index a82c0ab1c..006d64417 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -5,6 +5,10 @@ module.exports = function(grunt) { const path = require('path'); grunt.initConfig({ + + _brand: '../../../../src/brand', + _templates: '../../../templates', + pkg: grunt.file.readJSON('package.json'), watch: { scripts: { @@ -102,7 +106,7 @@ module.exports = function(grunt) { svgo: ['--config', 'svg4web.svgo.js'] }, files: { - '../../../templates/__common__/searxng-wordmark.min.svg': '../../../../src/brand/searxng-wordmark.svg' + '<%= _templates %>/__common__/searxng-wordmark.min.svg': '<%= _brand %>/searxng-wordmark.svg' } } }, |