diff options
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r-- | searx/static/themes/simple/gruntfile.js | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index f3507a4..13fd326 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -22,7 +22,9 @@ module.exports = function(grunt) { uglify: { options: { banner: '/*! simple/searx.min.js | <%= grunt.template.today("dd-mm-yyyy") %> | https://github.com/asciimoo/searx */\n', - preserveComments: 'some', + output: { + comments: 'some' + }, sourceMap: true }, dist: { @@ -58,6 +60,12 @@ module.exports = function(grunt) { production: { options: { paths: ["less"], + plugins: [ + new (require('less-plugin-clean-css'))({ + advanced: true, + compatibility: 'ie8' + }) + ], banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | https://github.com/asciimoo/searx */\n' }, files: { @@ -131,8 +139,15 @@ module.exports = function(grunt) { } }); - grunt.loadNpmTasks('grunt-contrib-uglify', '/usr/lib/nodejs'); - grunt.loadNpmTasks('grunt-contrib-concat', '/usr/lib/nodejs'); + 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('default', ['concat', 'uglify']); + grunt.registerTask('test', ['jshint']); + + grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'less:development', 'less:production']); }; |