Add Tailwind JIT functionality, remove redundant config and files

This commit is contained in:
Stef Coetzee 2021-09-20 05:42:32 +02:00
parent 1138b38b7d
commit 8c878268e4
8 changed files with 16 additions and 2431 deletions

1
.gitignore vendored
View File

@ -11,4 +11,3 @@ Gemfile.lock
# JavaScript
node_modules
package-lock.json

View File

@ -8,6 +8,9 @@ plugins:
sass:
sourcemap: never
postcss:
cache: false
exclude:
- .gitignore
- bin
@ -15,7 +18,7 @@ exclude:
- package-lock.json
- postcss.config.js
- README.md
- assets/css/tailwind.scss
# - assets/css/tailwind.scss
# files Jekyll should not delete from .site
keep_files:

View File

@ -1,2 +0,0 @@
include:
- assets/css/tailwind.scss

View File

@ -3,7 +3,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>{{ page.title }} - {{ site.title }}</title>
<title>{{ page.title }} | {{ site.title }}</title>
<link rel="stylesheet" href="{{ "/assets/css/tailwind.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
</head>

View File

@ -1,3 +1,3 @@
#!/bin/sh
bundle exec jekyll build --profile --config _config.yml,_config_tailwind.yml
bundle exec jekyll build --profile --config _config.yml

View File

@ -1,3 +1,3 @@
#!/bin/sh
JEKYLL_ENV=production bundle exec jekyll build --profile --config _config.yml,_config_tailwind.yml
JEKYLL_ENV=production bundle exec jekyll build --profile --config _config.yml

2432
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,5 @@
module.exports = {
mode: 'jit',
purge: {
enabled: process.env.JEKYLL_ENV == "production",
content:[