Skip to content

Commit

Permalink
Merge pull request #30 from nikolai-shabalin/feature/theme
Browse files Browse the repository at this point in the history
Меняет тему
  • Loading branch information
nikolai-shabalin authored May 18, 2024
2 parents a86594b + 9360400 commit 1d8a4e6
Show file tree
Hide file tree
Showing 6 changed files with 1,872 additions and 6,494 deletions.
8 changes: 6 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs';
import {src, dest, series, parallel, watch} from 'gulp';
import postcss from "gulp-postcss";
import csso from "postcss-csso";
import lightningcss from 'postcss-lightningcss';
import twig from 'gulp-twig';
import htmlmin from 'gulp-htmlmin';
import browser from 'browser-sync';
Expand All @@ -26,7 +26,11 @@ const pages = () => {
const styles = () => {
return src('./site/style.css')
.pipe(postcss([
csso()
lightningcss({
lightningcssOptions: {
minify: true,
},
})
]))
.pipe(dest(publicPath))
.pipe(browser.stream());
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"gulp-htmlmin": "5.0.1",
"gulp-postcss": "10.0.0",
"gulp-twig": "1.2.0",
"postcss-csso": "6.0.1"
"postcss-lightningcss": "1.0.0"
},
"type": "module",
"engines": {
Expand Down
Loading

0 comments on commit 1d8a4e6

Please sign in to comment.