mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
Merge pull request #581 from return42/fix-source-map
[fix] simple theme: make LESS sources available on non build hosts
This commit is contained in:
commit
e4a2d354aa
2
searx/static/themes/oscar/js/searxng.min.js
vendored
2
searx/static/themes/oscar/js/searxng.min.js
vendored
@ -4,7 +4,7 @@
|
|||||||
* (C) Copyright Contributors to the searx project (2014 - 2021).
|
* (C) Copyright Contributors to the searx project (2014 - 2021).
|
||||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
*/
|
*/
|
||||||
window.searxng=function(t){"use strict";t.getElementsByTagName("html")[0].className="js";var e=t.currentScript||(e=t.getElementsByTagName("script"))[e.length-1];return{autocompleter:"true"===e.getAttribute("data-autocompleter"),method:e.getAttribute("data-method"),translations:JSON.parse(e.getAttribute("data-translations"))}}(document),
|
window.searxng=function(t){"use strict";t.getElementsByTagName("html")[0].className="js";var e,e=t.currentScript||(e=t.getElementsByTagName("script"))[e.length-1];return{autocompleter:"true"===e.getAttribute("data-autocompleter"),method:e.getAttribute("data-method"),translations:JSON.parse(e.getAttribute("data-translations"))}}(document),
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
* (C) Copyright Contributors to the SearXNG project.
|
* (C) Copyright Contributors to the SearXNG project.
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -112,8 +112,7 @@ module.exports = function(grunt) {
|
|||||||
],
|
],
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
sourceMapURL: (name) => { const s = name.split('/'); return s[s.length - 1] + '.map';},
|
sourceMapURL: (name) => { const s = name.split('/'); return s[s.length - 1] + '.map';},
|
||||||
outputSourceFiles: false,
|
outputSourceFiles: true,
|
||||||
sourceMapRootpath: '../',
|
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
"css/searxng.min.css": "src/less/style.less",
|
"css/searxng.min.css": "src/less/style.less",
|
||||||
|
Loading…
Reference in New Issue
Block a user