Very initial work at togglable darktheme.

Dammit @alexdaniel654 just when I had my scope creep kinda under control. It'll be v. nice to have though...!
This commit is contained in:
2020-05-27 04:24:58 +02:00
parent 6ded711dd5
commit 06f67f4f32
25 changed files with 7075 additions and 342 deletions

View File

@@ -12,6 +12,8 @@ var sourcemaps = require('gulp-sourcemaps');
var browsersync = require('browser-sync').create();
var { exec } = require("child_process");
var spawn = require('child_process').spawn;
var rename = require('gulp-rename');
var _if = require('gulp-if');
sass.compiler = require('node-sass');
@@ -21,8 +23,9 @@ function styles(done) {
'node_modules/fullcalendar/dist/fullcalendar.print.css',
'node_modules/bootstrap-select/dist/css/bootstrap-select.css',
'node_modules/ajax-bootstrap-select/dist/css/ajax-bootstrap-select.css',
//'node_modules/autocompleter/autocomplete.css',
//'node_modules/@forevolve/bootstrap-dark/dist/css/bootstrap-dark.css',
'node_modules/@activix/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css'])
//.pipe(_if('**/bootstrap-dark.css', rename({basename:'dark-mode'})))
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(postcss([ autoprefixer() ]))
@@ -54,7 +57,7 @@ function scripts() {
'node_modules/bootstrap-select/dist/js/bootstrap-select.js',
'node_modules/ajax-bootstrap-select/dist/js/ajax-bootstrap-select.js',
'node_modules/konami/konami.js',
//'node_modules/autocompleter/autocomplete.js',
'node_modules/dark-mode-switch/dark-mode-switch.min.js',
'node_modules/@activix/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js'])
.pipe(flatten())
.pipe(terser())