Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.

Update core package and config #16

Conversation

colindensem
Copy link

@colindensem colindensem commented Jul 23, 2020

Updates the core packages and associated configs for Tailwindcss 1.5.2

To address #13

Many editors try to help with formatting. When local settings differ, it becomes a chore.
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
...process.env.NODE_ENV === 'production'
...(process.env.NODE_ENV === 'production'
? [purgecss, require('cssnano')]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purgecss const was removed, so this will not work :)

"cross-env": "^5.2.0",
"cssnano": "^4.1.10",
"live-server": "^1.2.1",
"postcss-cli": "^6.1.2"
"postcss-cli": "^7.1.1",
"tailwindcss": "^1.5.2"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since Tailwind is included in the final build, I think it would be wise to move it to the dependencies, not devDependencies

"autoprefixer": "^9.5.1",
"tailwindcss": "^1.0"
},
"dependencies": {},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^1.2.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to include purgecss anymore as it comes bundled with tailwind already :)

@@ -0,0 +1,11 @@
# https://editorconfig.org

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think adding a config in this PR makes sense. I'd create a new PR with just the config. This increases the chances of the PR being merged 😉

@simonswiss
Copy link
Contributor

Hey @colindensem

Really sorry - just did an update to the versions of this playground and somehow missed this PR, which does similar things but a few versions earlier :/

Thanks for your submission - I wish I looked at this before making the decision to update this repo!

@simonswiss simonswiss closed this Aug 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants