diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-05-17 17:38:33 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-05-17 17:41:22 +0200 |
commit | 965817f2942c31eddba44ace307b6c872479b922 (patch) | |
tree | 842a1b27c199034fd9b8c93f7c2631393e90fc7c /searx/static/themes/simple/gruntfile.js | |
parent | 93594a7b42cd4e2ddb8dc9ec0cd4d67e737e45b8 (diff) | |
download | searxng-965817f2942c31eddba44ace307b6c872479b922.tar.gz searxng-965817f2942c31eddba44ace307b6c872479b922.zip |
[fix] simple theme - generate missing sourceMap file
C&P from searx/static/themes/oscar/gruntfile.js
Suggested-by: @dalf in commit 1204e4f0
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 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index 0c322f37f..4c14116b2 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -68,11 +68,12 @@ module.exports = function(grunt) { options: { paths: ["less"], plugins: [ - new (require('less-plugin-clean-css'))({ - advanced: true, - compatibility: '*' - }) + new (require('less-plugin-clean-css'))() ], + sourceMap: true, + sourceMapURL: (name) => { const s = name.split('/'); return s[s.length - 1] + '.map';}, + outputSourceFiles: false, + sourceMapRootpath: '../', banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n' }, files: { |