searxngRebrandZaclys/searx/static/themes/simple
Markus Heiser f54460a805 [fix] simple theme: make JS sources available on non build hosts
Include the source files directly in the `.map` files [1] for two reasons:

1. In the simple theme, modules from `./node_modules` are only available on
   developer's build host (a `make node.env` is needed to get the sources).  By
   example; in the `searxng.min.js.map` file, the `autocomplete.js` is linked at
   URL:

      ../node_modules/autocomplete-js/dist/autocomplete.js

2. Later, when client sources has been moved out of the `./static` URL [2] to
   the `<repo-roo>/src` folder, all JS sources are no longer available.

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-uglify#sourcemapincludesources
[2] https://github.com/searxng/searxng/issues/141

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-01 21:09:26 +01:00
..
css [fix] simple theme: remove static files no longer needed 2021-12-01 10:38:41 +01:00
img [build] /static 2021-11-30 12:43:18 +01:00
js [fix] simple theme: remove static files no longer needed 2021-12-01 10:38:41 +01:00
src [mod] simple theme, JS: introduce window.searxng.theme namespace 2021-11-30 12:42:52 +01:00
.eslintrc.json [fix] Optimize SVG for WEB usage / CSP 'style-src self' 2021-11-15 14:51:55 +01:00
.gitignore [themes] ignore packages-lock.json 2021-06-22 08:17:06 +02:00
.jshintrc [emacs] .dir-locals.el: add setup for js-mode 2021-06-24 13:27:21 +02:00
.stylelintrc.json [mod] add stylelint process to target themes.simple 2021-06-24 13:27:21 +02:00
gruntfile.js [fix] simple theme: make JS sources available on non build hosts 2021-12-01 21:09:26 +01:00
package.json [mod] simple theme: smaller build 2021-11-30 23:04:37 +01:00
svg4favicon.svgo.js [enh] add SVG favicon href="favicon.svg" type="image/svg+xml" 2021-11-29 20:36:31 +01:00
svg4web.svgo.js [fix] Optimize SVG for WEB usage / CSP 'style-src self' 2021-11-15 14:51:55 +01:00