summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/gruntfile.js
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-11-30 23:04:37 +0100
committerAlexandre Flament <alex@al-f.net>2021-11-30 23:04:37 +0100
commit28b22a0f9836dff7e6f6fd1436227dead0db4abd (patch)
treec0a6ce2c88be6a427d4b698da8b441d74db8def5 /searx/static/themes/simple/gruntfile.js
parent632ae7d175dc3ad7404e1df943b1dc45881f7c87 (diff)
downloadsearxng-28b22a0f9836dff7e6f6fd1436227dead0db4abd.tar.gz
searxng-28b22a0f9836dff7e6f6fd1436227dead0db4abd.zip
[mod] simple theme: smaller build
remove: * searx/static/themes/simple/js/searxng.head.js * searx/static/themes/simple/js/searxng.js * searx/static/themes/simple/css/searxng-rtl.css * searx/static/themes/simple/css/searxng.css These files are never used. About the js files: the .map files references the sources instead of the concated version.
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r--searx/static/themes/simple/gruntfile.js39
1 files changed, 7 insertions, 32 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js
index 762ba1087..044ff9ab4 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: {
@@ -110,20 +93,15 @@ module.exports = function(grunt) {
dist: {
files: {
'js/searxng.head.min.js': ['js/searxng.head.js'],
- 'js/searxng.min.js': ['js/searxng.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',