summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/gruntfile.js
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-05-17 17:38:33 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-05-17 17:41:22 +0200
commit965817f2942c31eddba44ace307b6c872479b922 (patch)
tree842a1b27c199034fd9b8c93f7c2631393e90fc7c /searx/static/themes/simple/gruntfile.js
parent93594a7b42cd4e2ddb8dc9ec0cd4d67e737e45b8 (diff)
downloadsearxng-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.js9
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: {