now without auto formatting file

This commit is contained in:
Joey Defourneaux 2018-11-05 23:28:55 -05:00
parent 281d626823
commit d5718d70a6
1 changed files with 11 additions and 8 deletions

View File

@ -1,11 +1,11 @@
import browserSync from "browser-sync";
import { spawn } from "child_process";
import gulp from "gulp";
import atimport from "postcss-import"; import atimport from "postcss-import";
import autoprefixer from "gulp-autoprefixer"; import autoprefixer from "gulp-autoprefixer";
import browserSync from "browser-sync";
import cleancss from "gulp-clean-css"; import cleancss from "gulp-clean-css";
import gulp from "gulp";
import postcss from "gulp-postcss"; import postcss from "gulp-postcss";
import purgecss from "gulp-purgecss"; import purgecss from "gulp-purgecss";
import { spawn } from "child_process";
import tailwindcss from "tailwindcss"; import tailwindcss from "tailwindcss";
const mainStylesheet = "src/style.css"; /* Main stylesheet (pre-build) */ const mainStylesheet = "src/style.css"; /* Main stylesheet (pre-build) */
@ -48,10 +48,12 @@ const compileStyles = () => {
.pipe( .pipe(
purgecss({ purgecss({
content: ["_site/**/*.html"], content: ["_site/**/*.html"],
extractors: [{ extractors: [
extractor: TailwindExtractor, {
extensions: ["html", "js"] extractor: TailwindExtractor,
}] extensions: ["html", "js"]
}
]
}) })
) )
.pipe( .pipe(
@ -89,7 +91,8 @@ const startServer = () => {
"**/*.yml", "**/*.yml",
"!_site/**/*", "!_site/**/*",
"!node_modules" "!node_modules"
], { interval: 500 }, ],
{ interval: 500 },
buildSite buildSite
); );
}; };