diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-03-10 19:41:05 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2021-03-11 09:33:01 +0100 |
| commit | 86912e22728b8428d25b075be57cd35d6e484692 (patch) | |
| tree | af2c50838fe7d8a08f4a45bf9ee9fb5c835baceb /searx/static/themes/oscar/gruntfile.js | |
| parent | 44407353ef3dbab4e4249e9cca6955a500b8e539 (diff) | |
[mod] oscar: get bootstrap and typeahead from NPM
Diffstat (limited to 'searx/static/themes/oscar/gruntfile.js')
| -rw-r--r-- | searx/static/themes/oscar/gruntfile.js | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/searx/static/themes/oscar/gruntfile.js b/searx/static/themes/oscar/gruntfile.js index ffbaf8698..df27221e0 100644 --- a/searx/static/themes/oscar/gruntfile.js +++ b/searx/static/themes/oscar/gruntfile.js @@ -11,6 +11,8 @@ module.exports = function(grunt) { filter: 'isFile', timestamp: true, src: [ + './bootstrap/dist/js/bootstrap.min.js', + './corejs-typeahead/dist/typeahead.bundle.min.js', './jquery/dist/jquery.min.js', './leaflet/dist/leaflet.js', ] @@ -23,9 +25,23 @@ module.exports = function(grunt) { filter: 'isFile', timestamp: true, src: [ + './bootstrap/dist/css/bootstrap-theme.css', + './bootstrap/dist/css/bootstrap-theme.min.css', + './bootstrap/dist/css/bootstrap-theme.min.css.map', './leaflet/dist/leaflet.css', ] }, + fonts: { + expand: true, + cwd: './node_modules', + dest: './fonts/', + flatten: true, + filter: 'isFile', + timestamp: true, + src: [ + './bootstrap/dist/fonts/glyphicons-*.*', + ] + }, leaflet_images: { expand: true, cwd: './node_modules', @@ -74,9 +90,10 @@ module.exports = function(grunt) { less: { development: { options: { - paths: ["src/less/pointhi", "src/less/logicodev", "src/less/logicodev-dark"] + paths: ["src/less/pointhi", "src/less/logicodev", "src/less/logicodev-dark", "src/less/bootstrap"] }, files: { + "css/bootstrap.css": "src/less/bootstrap/bootstrap.less", "css/pointhi.css": "src/less/pointhi/oscar.less", "css/logicodev.css": "src/less/logicodev-dark/oscar.less", "css/logicodev-dark.css": "src/less/logicodev/oscar.less" @@ -84,13 +101,14 @@ module.exports = function(grunt) { }, production: { options: { - paths: ["src/less/pointhi", "src/less/logicodev", "src/less/logicodev-dark"], + paths: ["src/less/pointhi", "src/less/logicodev", "src/less/logicodev-dark", "less/bootstrap"], plugins: [ new (require('less-plugin-clean-css'))() ], sourceMap: true, }, files: { + "css/bootstrap.min.css": "src/less/bootstrap/bootstrap.less", "css/leaflet.min.css": "css/leaflet.css", "css/pointhi.min.css": "src/less/pointhi/oscar.less", "css/logicodev.min.css": "src/less/logicodev/oscar.less", |