1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-20 11:51:28 +02:00

feat(admin-plugin): optimize gulpfile.js #211

This commit is contained in:
Awilum
2020-01-24 23:05:09 +03:00
parent 8fceb65dc9
commit 9d65274df2

View File

@@ -37,11 +37,11 @@ gulp.task("css", function() {
.pipe(postcss([atimport(), tailwindcss(tailwindConfig)]))
.pipe(
purgecss({
content: ["**/*.php", "**/*.html", "../../**/*.md"],
content: ["**/*.html"],
extractors: [
{
extractor: TailwindExtractor,
extensions: ["html", "md", 'php']
extensions: ["html"]
}
]
})
@@ -90,5 +90,5 @@ gulp.task("css", function() {
gulp.task('watch', function () {
gulp.watch(["**/*.php", "**/*.html", "../../**/*.md", "assets/src/"], gulp.series('css', 'js'));
gulp.watch(["**/*.html", "assets/src/"], gulp.series('css', 'js'));
});