mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[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>
This commit is contained in:
parent
93594a7b42
commit
965817f294
@ -68,11 +68,12 @@ module.exports = function(grunt) {
|
|||||||
options: {
|
options: {
|
||||||
paths: ["less"],
|
paths: ["less"],
|
||||||
plugins: [
|
plugins: [
|
||||||
new (require('less-plugin-clean-css'))({
|
new (require('less-plugin-clean-css'))()
|
||||||
advanced: true,
|
|
||||||
compatibility: '*'
|
|
||||||
})
|
|
||||||
],
|
],
|
||||||
|
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'
|
banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n'
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
|
Loading…
Reference in New Issue
Block a user