Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: scaffolding nextjs #27

Merged
merged 1 commit into from
Jan 7, 2022
Merged

Conversation

nvh95
Copy link
Owner

@nvh95 nvh95 commented Jan 6, 2022

Description

  • I'm migrating my blog using Gatsby to NextJS. This is the first PR in the migration process where I scaffolding NextJS project

  • Install next

  • Install taildwindcss

  • Remove unused code

Question

// postcss.config.js
module.exports = {
  "plugins": [
    "postcss-flexbugs-fixes",
    [
      "postcss-preset-env",
      {
        "autoprefixer": {
          "flexbox": "no-2009"
        },
        "stage": 3,
        "features": {
          "custom-properties": false
        }
      }
    ]
  ]
}

However, follow tailwindcss guide here (https://tailwindcss.com/docs/guides/nextjs), after running command npx tailwindcss init -p, we have

// postcss.config.js
module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}

I am wondering if I am using above postcss settings, do I get fix Cross-browser Flexbox bugs and IE11 compatibility features?

@nvh95
Copy link
Owner Author

nvh95 commented Jan 7, 2022

Actually, postcss-flexbugs-fixes tries to fix bugs 4, 6, and 8.1a. All those bugs affects IE only, so we do not to use postcss-flexbugs-fixes since I do not IE anyway.

@nvh95 nvh95 merged commit 65c2ca3 into next-migration/main Jan 7, 2022
@nvh95 nvh95 deleted the next-migration/scaffolding branch January 7, 2022 16:56
@nvh95 nvh95 mentioned this pull request Jan 10, 2022
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant