summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/gruntfile.js
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-03-22 08:16:46 +0100
committerGitHub <noreply@github.com>2021-03-22 08:16:46 +0100
commitbfd4e1b3423993b112bd5e2a60c806fc0c83527f (patch)
treef16f5336a81af020d79a3696a21ff310b26cd769 /searx/static/themes/oscar/gruntfile.js
parenta48ec0b4bd7015fa0b8dc2aab6e7f328980e901d (diff)
parent6bd01bf81f1daaade070cfdefba8492ad18791d6 (diff)
Merge pull request #2673 from dalf/fix-oscar-sourcemaps
[mod] oscar: fix the sourcemap URL in *.min.css
Diffstat (limited to 'searx/static/themes/oscar/gruntfile.js')
-rw-r--r--searx/static/themes/oscar/gruntfile.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/searx/static/themes/oscar/gruntfile.js b/searx/static/themes/oscar/gruntfile.js
index df27221e0..7c1f55249 100644
--- a/searx/static/themes/oscar/gruntfile.js
+++ b/searx/static/themes/oscar/gruntfile.js
@@ -1,3 +1,4 @@
+/*jshint esversion: 6 */
module.exports = function(grunt) {
grunt.initConfig({
@@ -101,14 +102,17 @@ module.exports = function(grunt) {
},
production: {
options: {
- paths: ["src/less/pointhi", "src/less/logicodev", "src/less/logicodev-dark", "less/bootstrap"],
+ paths: ["src/less/pointhi", "src/less/logicodev", "src/less/logicodev-dark", "src/less/bootstrap"],
plugins: [
new (require('less-plugin-clean-css'))()
],
sourceMap: true,
+ sourceMapURL: (name) => { const s = name.split('/'); return s[s.length - 1] + '.map';},
+ outputSourceFiles: false,
+ sourceMapRootpath: '../'
},
files: {
- "css/bootstrap.min.css": "src/less/bootstrap/bootstrap.less",
+ "css/bootstrap.min.css": "css/bootstrap.css",
"css/leaflet.min.css": "css/leaflet.css",
"css/pointhi.min.css": "src/less/pointhi/oscar.less",
"css/logicodev.min.css": "src/less/logicodev/oscar.less",