primevue.css import updates

pull/4101/head^2
Tuğçe Küçükoğlu 2023-07-05 16:53:02 +03:00
parent 6bad630ce1
commit 18662adebd
3 changed files with 12 additions and 2 deletions

View File

@ -1 +0,0 @@
@import '../../components/lib/common/Common.css';

View File

@ -6,6 +6,7 @@ var gulp = require('gulp'),
rename = require('gulp-rename'), rename = require('gulp-rename'),
flatten = require('gulp-flatten'); flatten = require('gulp-flatten');
/** @deprecated */
gulp.task('build-css', function () { gulp.task('build-css', function () {
return gulp return gulp
.src(['./components/lib/common/Common.css', './components/**/*.css']) .src(['./components/lib/common/Common.css', './components/**/*.css'])
@ -16,6 +17,16 @@ gulp.task('build-css', function () {
.pipe(gulp.dest('dist/resources')); .pipe(gulp.dest('dist/resources'));
}); });
gulp.task('build-primevuecss', function () {
return gulp
.src(['./assets/styles/primevue.css'])
.pipe(concat('primevue.css'))
.pipe(gulp.dest('dist/resources'))
.pipe(uglifycss({ uglyComments: true }))
.pipe(rename('primevue.min.css'))
.pipe(gulp.dest('dist/resources'));
});
gulp.task('build-themes', function () { gulp.task('build-themes', function () {
return gulp.src(['public/themes/**/*']).pipe(gulp.dest('dist/resources/themes')); return gulp.src(['public/themes/**/*']).pipe(gulp.dest('dist/resources/themes'));
}); });
@ -26,4 +37,4 @@ gulp.task('images', function () {
}); });
//Building project with run sequence //Building project with run sequence
gulp.task('build-styles', gulp.series('build-css', 'build-themes')); gulp.task('build-styles', gulp.series('build-themes', 'build-primevuecss'));