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'));