summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/gruntfile.js
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-12-01 20:30:58 +0100
committerGitHub <noreply@github.com>2021-12-01 20:30:58 +0100
commitae49b5224c06f03121298fc5ed164c3722b9f62b (patch)
tree650fef4a75e4d751fe8da547b4e06eafc8f2a024 /searx/static/themes/simple/gruntfile.js
parente62733fcf3bbc1af099e81555c42819624fffc2a (diff)
parent82125862c61392b5934155ce4db58e20ffbfddc8 (diff)
Merge pull request #566 from dalf/simple-theme-smaller-build
[mod] simple theme: smaller build
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r--searx/static/themes/simple/gruntfile.js41
1 files changed, 8 insertions, 33 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js
index 762ba1087..57682430d 100644
--- a/searx/static/themes/simple/gruntfile.js
+++ b/searx/static/themes/simple/gruntfile.js
@@ -16,10 +16,8 @@ module.exports = function(grunt) {
tasks: [
'eslint',
'copy',
- 'concat',
'uglify',
- 'less:development',
- 'less:production',
+ 'less',
'image',
'svg2png',
'svg2jinja'
@@ -81,21 +79,6 @@ module.exports = function(grunt) {
]
},
},
- concat: {
- head_and_body: {
- options: {
- separator: ';'
- },
- files: {
- 'js/searxng.head.js': ['src/js/head/*.js'],
- 'js/searxng.js': [
- 'src/js/main/*.js',
- '../__common__/js/*.js',
- './node_modules/autocomplete-js/dist/autocomplete.js'
- ]
- }
- }
- },
uglify: {
options: {
output: {
@@ -109,21 +92,16 @@ module.exports = function(grunt) {
},
dist: {
files: {
- 'js/searxng.head.min.js': ['js/searxng.head.js'],
- 'js/searxng.min.js': ['js/searxng.js']
+ 'js/searxng.head.min.js': ['src/js/head/*.js'],
+ 'js/searxng.min.js': [
+ 'src/js/main/*.js',
+ '../__common__/js/*.js',
+ './node_modules/autocomplete-js/dist/autocomplete.js'
+ ]
}
}
},
less: {
- development: {
- options: {
- paths: ["less"],
- },
- files: {
- "css/searxng.css": "src/less/style.less",
- "css/searxng-rtl.css": "src/less/style-rtl.less"
- }
- },
production: {
options: {
paths: ["less"],
@@ -288,7 +266,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-image');
grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-stylelint');
@@ -300,10 +277,8 @@ module.exports = function(grunt) {
'eslint',
'stylelint',
'copy',
- 'concat',
'uglify',
- 'less:development',
- 'less:production',
+ 'less',
'image',
'svg2png',
'svg2jinja',