Skip to content

Commit

Permalink
Merge pull request #5 from surjithctly/dev-test
Browse files Browse the repository at this point in the history
Upgrade to TailwindCSS v2
  • Loading branch information
surjithctly authored Dec 23, 2020
2 parents 258280f + d17bde3 commit 04744e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@
"devDependencies": {
"@11ty/eleventy": "^0.11.0",
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
"@tailwindcss/typography": "^0.2.0",
"@tailwindcss/typography": "^0.3.1",
"alpinejs": "^2.6.0",
"cross-env": "^7.0.2",
"cssnano": "^4.1.10",
"html-minifier": "^4.0.0",
"js-yaml": "^3.14.0",
"luxon": "^1.25.0",
"npm-run-all": "^4.1.5",
"postcss-clean": "^1.1.0",
"postcss-cli": "^7.1.1",
"postcss-cli": "^8.3.1",
"prismjs": "^1.21.0",
"tailwindcss": "^1.7.2"
"tailwindcss": "^2.0.2"
},
"dependencies": {
"autoprefixer": "^10.1.0",
"postcss": "^8.2.1"
}
}
6 changes: 5 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ module.exports = {
require(`tailwindcss`)(`./tailwind.config.js`),
require(`autoprefixer`),
...(process.env.NODE_ENV === "production"
? [require(`postcss-clean`)]
? [
require(`cssnano`)({
preset: "default",
}),
]
: []),
],
};
4 changes: 0 additions & 4 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ module.exports = {
},
variants: {},
plugins: [require("@tailwindcss/typography")],
experimental: "all",
future: {
purgeLayersByDefault: true,
},
};

0 comments on commit 04744e5

Please sign in to comment.