summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@debian.org>2021-12-07 22:10:22 +0100
committerJohannes Schauer Marin Rodrigues <josch@debian.org>2021-12-07 22:10:22 +0100
commita638332d65f0eef0a63dd5187a16cbddcece8662 (patch)
tree24f7b6af4250a0753d4aecf011ed4f8e1b22c6d6
parent0cd61e2eef663b784f860c456cea011391c9a827 (diff)
clean-gruntfiles
Gbp-Pq: Name clean-gruntfiles
-rw-r--r--searx/static/themes/oscar/gruntfile.js9
-rw-r--r--searx/static/themes/simple/gruntfile.js12
2 files changed, 2 insertions, 19 deletions
diff --git a/searx/static/themes/oscar/gruntfile.js b/searx/static/themes/oscar/gruntfile.js
index 7c1f552..ecf0f49 100644
--- a/searx/static/themes/oscar/gruntfile.js
+++ b/searx/static/themes/oscar/gruntfile.js
@@ -103,9 +103,6 @@ module.exports = function(grunt) {
production: {
options: {
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,
@@ -136,16 +133,12 @@ module.exports = function(grunt) {
}
});
- grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
- grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
- grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('test', ['jshint']);
- grunt.registerTask('default', ['copy', 'jshint', 'concat', 'uglify', 'less']);
+ grunt.registerTask('default', ['concat', 'uglify']);
grunt.registerTask('styles', ['less']);
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js
index c8f2ed3..76faedb 100644
--- a/searx/static/themes/simple/gruntfile.js
+++ b/searx/static/themes/simple/gruntfile.js
@@ -67,12 +67,6 @@ module.exports = function(grunt) {
production: {
options: {
paths: ["less"],
- plugins: [
- new (require('less-plugin-clean-css'))({
- advanced: true,
- compatibility: '*'
- })
- ],
banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n'
},
files: {
@@ -147,15 +141,11 @@ module.exports = function(grunt) {
}
});
- grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
- grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
- grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-cssmin');
- grunt.loadNpmTasks('grunt-webfont');
grunt.registerTask('test', ['jshint']);
- grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'less:development', 'less:production']);
+ grunt.registerTask('default', ['concat', 'uglify']);
};