diff options
author | Johannes Schauer Marin Rodrigues <josch@debian.org> | 2023-02-08 07:23:42 +0100 |
---|---|---|
committer | Johannes Schauer Marin Rodrigues <josch@debian.org> | 2023-02-08 07:23:42 +0100 |
commit | 61349390d6c4c4e61e1077e64bbd3053dc29401b (patch) | |
tree | 751548aacc751476558e35e2205bac0bfc1331d7 | |
parent | 2fa7e78a6c4e0e6768e85eeddaeceea9551eb864 (diff) |
clean-gruntfiles
Comment: disable all grunt task using unpacked modules
Forwarded: not-needed
Gbp-Pq: Name clean-gruntfiles
-rw-r--r-- | searx/static/themes/oscar/gruntfile.js | 9 | ||||
-rw-r--r-- | searx/static/themes/simple/gruntfile.js | 12 |
2 files changed, 2 insertions, 19 deletions
diff --git a/searx/static/themes/oscar/gruntfile.js b/searx/static/themes/oscar/gruntfile.js index 1973b09..b7c7202 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 0c322f3..7d6cb01 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']); }; |