File tree 8 files changed +367
-893
lines changed
8 files changed +367
-893
lines changed Original file line number Diff line number Diff line change 22
22
cache : ' npm'
23
23
cache-dependency-path : package-lock.json
24
24
registry-url : ' https://npm.pkg.github.com/'
25
- - name : Install Tools
26
- run : npm install -g postcss-cli autoprefixer
27
25
- name : NPM install
28
26
run : |
29
27
npm config set "@skymatic:registry" https://npm.pkg.github.com/
Original file line number Diff line number Diff line change 3
3
# Usage
4
4
## Requirements
5
5
* Hugo
6
- * NPM
7
- * postcss-cli (` npm install -g postcss-cli ` )
8
- * autoprefixer (` npm install -g autoprefixer ` )
9
6
* Fontawesome Pro ` npm config set "@skymatic:registry" https://npm.pkg.github.com/ && npm config set "//npm.pkg.github.com/:_authToken" TOKEN `
10
7
11
8
## Building
Original file line number Diff line number Diff line change 1
1
/* purgecss start ignore */
2
2
@import 'tailwindcss' ;
3
3
/* purgecss end ignore */
4
- @import './custom.css' layer(components) ;
5
- @import './fonts.css' layer(components) ;
4
+ @import './custom.css' ;
5
+ @import './fonts.css' ;
6
6
@import '@skymatic/fontawesome-pro/css/all' layer(components);
7
7
8
8
@plugin '@tailwindcss/forms' ;
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ enableemoji = true
14
14
languageName = " Deutsch"
15
15
languageCode = " de_DE"
16
16
17
+ [build ]
18
+ [[build .cachebusters ]]
19
+ source = ' layouts/.*'
20
+ target = ' css'
21
+
17
22
[outputs ]
18
23
home = [" HTML" , " RSS" ]
19
24
section = [" HTML" ]
Original file line number Diff line number Diff line change 52
52
{{ end }}
53
53
< meta name ="apple-itunes-app " content ="app-id=1560822163 ">
54
54
{{ if hugo.IsServer }}
55
- {{ $css := resources.Get "css/main.css" | postCSS }}
55
+ {{ $css := resources.Get "css/main.css" | css.TailwindCSS }}
56
56
< link rel ="stylesheet " href ="{{ $css.RelPermalink }} " media ="screen " />
57
57
{{ else }}
58
- {{ $css := resources.Get "css/main.css" | postCSS | minify | fingerprint }}
58
+ {{ $tailwindOpts := dict "minify" true }}
59
+ {{ $css := resources.Get "css/main.css" | css.TailwindCSS $tailwindOpts | fingerprint }}
59
60
< link rel ="stylesheet " href ="{{ $css.RelPermalink }} " integrity ="{{ $css.Data.Integrity }} " media ="screen " />
60
61
{{ end }}
61
62
< link rel ="alternate " type ="application/rss+xml " title ="RSS Feed " href ="{{ .Site.LanguagePrefix }}/feed.xml " />
You can’t perform that action at this time.
0 commit comments