Temporarily removing gulp task removing unused CSS.
This commit is contained in:
parent
979f0c8e1c
commit
e499eb4dc2
|
@ -44,7 +44,7 @@ gulp.task('hugo', ['setup'], function (cb) {
|
||||||
gulp.task("css", ['hugo'], () => (
|
gulp.task("css", ['hugo'], () => (
|
||||||
gulp.src(`${distPath}/css/**/*.css`, {base: './'})
|
gulp.src(`${distPath}/css/**/*.css`, {base: './'})
|
||||||
.pipe(postcss([cssnext(), cssImport({from: `${distPath}/css/main.css`})]))
|
.pipe(postcss([cssnext(), cssImport({from: `${distPath}/css/main.css`})]))
|
||||||
.pipe(uncss({
|
/*.pipe(uncss({
|
||||||
html: [`${distPath}/**/*.html`],
|
html: [`${distPath}/**/*.html`],
|
||||||
ignore: [/\w\.in/,
|
ignore: [/\w\.in/,
|
||||||
".fade",
|
".fade",
|
||||||
|
@ -55,7 +55,7 @@ gulp.task("css", ['hugo'], () => (
|
||||||
/(#|\.)navbar(\-[a-zA-Z]+)?/,
|
/(#|\.)navbar(\-[a-zA-Z]+)?/,
|
||||||
/(#|\.)dropdown(\-[a-zA-Z]+)?/,
|
/(#|\.)dropdown(\-[a-zA-Z]+)?/,
|
||||||
/(#|\.)carousel(\-[a-zA-Z]+)?/,
|
/(#|\.)carousel(\-[a-zA-Z]+)?/,
|
||||||
]}))
|
]}))*/
|
||||||
.pipe(cleanCSS())
|
.pipe(cleanCSS())
|
||||||
.pipe(md5(10, `${distPath}/**/*.html`))
|
.pipe(md5(10, `${distPath}/**/*.html`))
|
||||||
.pipe(gulp.dest('./'))
|
.pipe(gulp.dest('./'))
|
||||||
|
|
Reference in New Issue