Inline tailwind into eleventy

This commit is contained in:
Sam Carlton 2021-01-23 17:42:37 -06:00
parent b932177235
commit 52ce5bfb53
5 changed files with 20 additions and 6 deletions

1
.gitignore vendored
View file

@ -87,3 +87,4 @@ dist
/static/**/*.json
/commits-data.json
.DS_Store
/static/tailwind.css

File diff suppressed because one or more lines are too long

View file

@ -11,7 +11,9 @@
"generate": "npm run clone-readme && npm run build-lists && npm run generate-nuxt && npm run generate-eleventy",
"build-lists": "node -r esm build-lists.js",
"generate-nuxt": "nuxt generate",
"generate-eleventy": "node -r esm node_modules/.bin/eleventy",
"generate-eleventy": "npm run generate-postcss && node -r esm node_modules/.bin/eleventy --quiet",
"generate-postcss": "ENV=production postcss assets/css/tailwind.css --o static/tailwind.css",
"dev-eleventy": "node -r esm node_modules/.bin/eleventy --quiet --watch --serve",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
"lint:fix": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
"precommit": "npm run lint",

7
postcss.config.js Normal file
View file

@ -0,0 +1,7 @@
module.exports = {
plugins: {
tailwindcss: { config: './tailwind.config.js' },
autoprefixer: {},
cssnano: {},
}
}

View file

@ -1,6 +1,6 @@
module.exports = {
purge: {
enabled: process.env.NODE_ENV === 'production',
enabled: true,//process.env.NODE_ENV === 'production',
content: [
'components/**/*.vue',
'layouts/**/*.vue',