Skip to content
Snippets Groups Projects
Commit a2f11b8e authored by alexisben's avatar alexisben
Browse files

move postcss into theme

parent 34fbb85f
No related branches found
No related tags found
No related merge requests found
......@@ -19,13 +19,15 @@ console.log(`
const command = process.argv[2];
let pagefindExclude = ".pages__section, .block-pages, "
pagefindExclude += ".posts__section, .block-posts, .post-sidebar, "
pagefindExclude += ".organizations__section, .block-partners, .block-organizations, "
pagefindExclude += ".persons__section, .block-organization_chart, .block-people, .block-persons, "
pagefindExclude += ".programs__section, .block-programs, "
pagefindExclude += ".events__section, .block-agenda, "
pagefindExclude += ".diplomas__taxonomy, .block-diplomas"
let pagefindExclude = `
.pages__section, .block-pages,
.posts__section, .block-posts, .post-sidebar,
.organizations__section, .block-partners, .block-organizations,
.persons__section, .block-organization_chart, .block-people, .block-persons,
.programs__section, .block-programs,
.events__section, .block-agenda,
.diplomas__taxonomy, .block-diplomas`;
function execute(string) {
console.log("OSUNY runs " + string);
......
......@@ -4,9 +4,11 @@
"enableSourceMap" true
"includePaths" (slice "node_modules")
) -}}
<!-- PostCSS -->
{{- $postCSSOpts := (dict "config" "themes/osuny-hugo-theme-aaa") -}}
{{- $styles := resources.Get "sass/main.sass" | toCSS $cssOpts -}}
{{ if hugo.IsProduction }}
{{- $styles = resources.Get "sass/main.sass" | toCSS $cssOpts | postCSS | minify | fingerprint -}}
{{- $styles = resources.Get "sass/main.sass" | toCSS $cssOpts | postCSS $postCSSOpts | minify | fingerprint -}}
{{ end }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}">
\ No newline at end of file
......@@ -11,8 +11,8 @@
"license": "MIT",
"dependencies": {
"@splidejs/splide": "^3",
"autoprefixer": "^10",
"cssnano": "^5",
"cssnano-preset-advanced": "^6.0.1",
"glightbox": "^3",
"intersection-observer": "^0",
"leaflet": "^1",
......
/* eslint-disable no-undef */
module.exports = {
plugins: {
autoprefixer: {},
cssnano: {
preset: 'default'
}
}
};
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment