mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Split admin css from app.css
Cleanup normalize and bootstrap css Removed almost all css float Removed CKEditor from app.css
This commit is contained in:
parent
6dacfb3cf4
commit
b6d8fa5b3f
74 changed files with 455 additions and 1014 deletions
36
tasks/css.js
36
tasks/css.js
|
|
@ -50,6 +50,29 @@ const cssMainBuild = () => {
|
|||
.pipe(livereload());
|
||||
};
|
||||
|
||||
const cssAdminBuild = () => {
|
||||
const
|
||||
less = require('gulp-less'),
|
||||
lessFilter = filter('**/*.less', { restore: true }),
|
||||
src = config.paths.css.main.src.concat([config.paths.less.admin.src]);
|
||||
|
||||
return gulp
|
||||
.src(src)
|
||||
.pipe(expect.real({ errorOnFailure: true }, src))
|
||||
.pipe(lessFilter)
|
||||
.pipe(
|
||||
less({
|
||||
'paths': config.paths.less.main.options.paths
|
||||
})
|
||||
)
|
||||
.pipe(lessFilter.restore)
|
||||
.pipe(concat(config.paths.css.admin.name))
|
||||
.pipe(replace(/\.\.\/(img|images|fonts|svg)\//g, '$1/'))
|
||||
.pipe(eol('\n', true))
|
||||
.pipe(gulp.dest(config.paths.staticCSS))
|
||||
.pipe(livereload());
|
||||
};
|
||||
|
||||
const cssBootMin = () => {
|
||||
return gulp
|
||||
.src(config.paths.staticCSS + config.paths.css.boot.name)
|
||||
|
|
@ -68,8 +91,17 @@ const cssMainMin = () => {
|
|||
.pipe(gulp.dest(config.paths.staticCSS));
|
||||
};
|
||||
|
||||
const cssBuild = gulp.parallel(cssBootBuild, cssMainBuild);
|
||||
const cssMin = gulp.parallel(cssBootMin, cssMainMin);
|
||||
const cssAdminMin = () => {
|
||||
return gulp
|
||||
.src(config.paths.staticCSS + config.paths.css.admin.name)
|
||||
.pipe(cleanCss())
|
||||
.pipe(rename({ suffix: '.min' }))
|
||||
.pipe(eol('\n', true))
|
||||
.pipe(gulp.dest(config.paths.staticCSS));
|
||||
};
|
||||
|
||||
const cssBuild = gulp.parallel(cssBootBuild, cssMainBuild, cssAdminBuild);
|
||||
const cssMin = gulp.parallel(cssBootMin, cssMainMin, cssAdminMin);
|
||||
|
||||
const cssLint = (done) => done();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue