Browse Source

Merge pull request #575 from return42/fix-source-map

[fix] simple theme: make JS sources available on non build hosts
Alexandre Flament 3 years ago
parent
commit
58a6738dec

+ 1 - 1
searx/static/themes/oscar/js/searxng.min.js

@@ -4,7 +4,7 @@
  * (C) Copyright Contributors to the searx project (2014 - 2021).
  * SPDX-License-Identifier: AGPL-3.0-or-later
  */
-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),
+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),
 /**
  * @license
  * (C) Copyright Contributors to the SearXNG project.

File diff suppressed because it is too large
+ 0 - 0
searx/static/themes/oscar/js/searxng.min.js.map


+ 3 - 1
searx/static/themes/simple/gruntfile.js

@@ -88,7 +88,9 @@ module.exports = function(grunt) {
         warnings: true,
         compress: false,
         mangle: true,
-        sourceMap: true
+        sourceMap: {
+          includeSources: true
+        }
       },
       dist: {
         files: {

File diff suppressed because it is too large
+ 0 - 1
searx/static/themes/simple/js/searxng.head.min.js.map


File diff suppressed because it is too large
+ 0 - 0
searx/static/themes/simple/js/searxng.min.js.map


Some files were not shown because too many files changed in this diff