From 18662adebd2ebdc038940dbdcf39cdf42b87fa32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 5 Jul 2023 16:53:02 +0300 Subject: [PATCH] primevue.css import updates --- assets/styles/primevue.css | 1 - components/lib/common/Common.css | 0 gulpfile.js | 13 ++++++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) delete mode 100644 components/lib/common/Common.css diff --git a/assets/styles/primevue.css b/assets/styles/primevue.css index 391bf08ac..e69de29bb 100644 --- a/assets/styles/primevue.css +++ b/assets/styles/primevue.css @@ -1 +0,0 @@ -@import '../../components/lib/common/Common.css'; \ No newline at end of file diff --git a/components/lib/common/Common.css b/components/lib/common/Common.css deleted file mode 100644 index e69de29bb..000000000 diff --git a/gulpfile.js b/gulpfile.js index 7d13ecbbe..1fa099c3b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,6 +6,7 @@ var gulp = require('gulp'), rename = require('gulp-rename'), flatten = require('gulp-flatten'); +/** @deprecated */ gulp.task('build-css', function () { return gulp .src(['./components/lib/common/Common.css', './components/**/*.css']) @@ -16,6 +17,16 @@ gulp.task('build-css', function () { .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 () { return gulp.src(['public/themes/**/*']).pipe(gulp.dest('dist/resources/themes')); }); @@ -26,4 +37,4 @@ gulp.task('images', function () { }); //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'));