How to use tailwindcss with AMP in a Next.js project

2020-03-25来源 GeekPlux中文

How to use tailwindcss with AMP in a Next.js project

Recently, I was refactoring my blog using Next.js by a whim. There are 3 tech stacks I would use:

  • Next.js , a popular React framework with SSG, SSR support naturally
  • Tailwindcss , a low-level CSS framework with the utility-first concept.
  • AMP , an HTML framework developed by Google to make your website fast and loading smoothly.

However, There are so many restrictions in AMP for performance issues. At the beginning of the project, I found this issue, which means you can NOT add a global CSS as Next.js documented. So this article may be a guide for how to use tailwindcss with AMP in a Next.js project.

S...

Continue to read

原文:https://www.a8q9.cn/zh/article/how-to-use-tailwindcss-with-amp-in-a-next-js-project-d4e6e0.html

相关文章