From 7d6a15a61208842260372b221c5705a96ab68bf5 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 4 Dec 2021 11:22:40 +0100 Subject: [PATCH] [fix] simple theme: make LESS sources available on non build hosts Include the LESS source files directly in the `.map` files [1]. Drawback: `.map` files grow up in size, but this should not bother, because the files are only loaded in debug mode. [1] https://github.com/gruntjs/grunt-contrib-less#outputsourcefiles [2] https://github.com/searxng/searxng/pull/575#issuecomment-984058868 Suggested-by: @dalf [2] Signed-off-by: Markus Heiser --- searx/static/themes/simple/gruntfile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index ca59cb562..84f051f23 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -112,8 +112,7 @@ module.exports = function(grunt) { ], sourceMap: true, sourceMapURL: (name) => { const s = name.split('/'); return s[s.length - 1] + '.map';}, - outputSourceFiles: false, - sourceMapRootpath: '../', + outputSourceFiles: true, }, files: { "css/searxng.min.css": "src/less/style.less",