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 # JavaScript
node_modules node_modules
package-lock.json

View File

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

View File

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

View File

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

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/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 #!/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 = { module.exports = {
mode: 'jit',
purge: { purge: {
enabled: process.env.JEKYLL_ENV == "production", enabled: process.env.JEKYLL_ENV == "production",
content:[ content:[