now without auto formatting file
This commit is contained in:
parent
281d626823
commit
d5718d70a6
|
@ -1,11 +1,11 @@
|
|||
import browserSync from "browser-sync";
|
||||
import { spawn } from "child_process";
|
||||
import gulp from "gulp";
|
||||
import atimport from "postcss-import";
|
||||
import autoprefixer from "gulp-autoprefixer";
|
||||
import browserSync from "browser-sync";
|
||||
import cleancss from "gulp-clean-css";
|
||||
import gulp from "gulp";
|
||||
import postcss from "gulp-postcss";
|
||||
import purgecss from "gulp-purgecss";
|
||||
import { spawn } from "child_process";
|
||||
import tailwindcss from "tailwindcss";
|
||||
|
||||
const mainStylesheet = "src/style.css"; /* Main stylesheet (pre-build) */
|
||||
|
@ -48,10 +48,12 @@ const compileStyles = () => {
|
|||
.pipe(
|
||||
purgecss({
|
||||
content: ["_site/**/*.html"],
|
||||
extractors: [{
|
||||
extractor: TailwindExtractor,
|
||||
extensions: ["html", "js"]
|
||||
}]
|
||||
extractors: [
|
||||
{
|
||||
extractor: TailwindExtractor,
|
||||
extensions: ["html", "js"]
|
||||
}
|
||||
]
|
||||
})
|
||||
)
|
||||
.pipe(
|
||||
|
@ -89,7 +91,8 @@ const startServer = () => {
|
|||
"**/*.yml",
|
||||
"!_site/**/*",
|
||||
"!node_modules"
|
||||
], { interval: 500 },
|
||||
],
|
||||
{ interval: 500 },
|
||||
buildSite
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue