summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/gruntfile.js
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-06-16 13:28:08 +0200
committerAlexandre Flament <alex@al-f.net>2021-06-16 14:30:09 +0200
commit7137d2893f33e9158e8563a21d9586119d175269 (patch)
treee204cc396e73525bbe490bb4f3315198ef317245 /searx/static/themes/simple/gruntfile.js
parente3ebfd41d7379384186fd74a7db430247eef8c84 (diff)
downloadsearxng-7137d2893f33e9158e8563a21d9586119d175269.tar.gz
searxng-7137d2893f33e9158e8563a21d9586119d175269.zip
[mod] simple theme: remove src/less/ion.less
This file is generated by webfont. * It is now generated as searx/static/themes/simple/ion.less * It is generated before the .less compilation. * .gitignore includes this file Add two new package depedencies: fontforge ttfautohint See utils/searx.sh
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r--searx/static/themes/simple/gruntfile.js64
1 files changed, 32 insertions, 32 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js
index 271e21b26..1dea80bd4 100644
--- a/searx/static/themes/simple/gruntfile.js
+++ b/searx/static/themes/simple/gruntfile.js
@@ -88,35 +88,6 @@ module.exports = function(grunt) {
}
}
},
- less: {
- development: {
- options: {
- paths: ["less"],
- banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n'
- },
- files: {
- "css/searx.css": "src/less/style.less",
- "css/searx-rtl.css": "src/less/style-rtl.less"
- }
- },
- production: {
- options: {
- paths: ["less"],
- plugins: [
- new (require('less-plugin-clean-css'))()
- ],
- 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'
- },
- files: {
- "css/searx.min.css": "src/less/style.less",
- "css/searx-rtl.min.css": "src/less/style-rtl.less"
- }
- },
- },
webfont: {
icons: {
// src: 'node_modules/ionicons-npm/src/*.svg',
@@ -146,7 +117,7 @@ module.exports = function(grunt) {
'node_modules/ionicons-npm/src/android-close.svg',
],
dest: 'fonts',
- destLess: 'less',
+ destLess: '.',
options: {
font: 'ion',
hashes : true,
@@ -180,7 +151,36 @@ module.exports = function(grunt) {
}
}
}
- }
+ },
+ less: {
+ development: {
+ options: {
+ paths: ["less"],
+ banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n'
+ },
+ files: {
+ "css/searx.css": "src/less/style.less",
+ "css/searx-rtl.css": "src/less/style-rtl.less"
+ }
+ },
+ production: {
+ options: {
+ paths: ["less"],
+ plugins: [
+ new (require('less-plugin-clean-css'))()
+ ],
+ 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'
+ },
+ files: {
+ "css/searx.min.css": "src/less/style.less",
+ "css/searx-rtl.min.css": "src/less/style-rtl.less"
+ }
+ },
+ },
});
grunt.loadNpmTasks('grunt-contrib-watch');
@@ -194,5 +194,5 @@ module.exports = function(grunt) {
grunt.registerTask('test', ['jshint']);
- grunt.registerTask('default', ['jshint', 'copy', 'concat', 'uglify', 'less:development', 'less:production']);
+ grunt.registerTask('default', ['jshint', 'copy', 'concat', 'uglify', 'webfont', 'less:development', 'less:production']);
};