diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-12-04 11:22:40 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-12-04 11:22:40 +0100 |
commit | 7d6a15a61208842260372b221c5705a96ab68bf5 (patch) | |
tree | 1f237b9b74db92b2417902dd3813c142f9c00616 /searx/static/themes/simple/gruntfile.js | |
parent | 33e2599b8217e263c744fc14f2c89118ef363866 (diff) | |
download | searxng-7d6a15a61208842260372b221c5705a96ab68bf5.tar.gz searxng-7d6a15a61208842260372b221c5705a96ab68bf5.zip |
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r-- | searx/static/themes/simple/gruntfile.js | 3 |
1 files changed, 1 insertions, 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", |