项目作者: JoschuaSchneider

项目描述 :
Gatsby Starter Default with TailwindCSS and PostCSS + PurgeCSS
高级语言: JavaScript
项目地址: git://github.com/JoschuaSchneider/gatsby-tailwindcss-postcss-boilerplate.git
创建时间: 2020-01-12T12:54:51Z
项目社区:https://github.com/JoschuaSchneider/gatsby-tailwindcss-postcss-boilerplate

开源协议:MIT License

下载




Gatsby


Gatsby’s default starter with TailwindCSS and PostCSS

This will get you started with gatsby and TailwindCSS for both development and production. The config is very minimal and the default pages are re-build with tailwind from the original Gatsby Starter.

Check out the Gatsby Starter Repo for help on getting started with Gatsby.

Check out TailwindCSS for more info and docs!

Setting up for development

In development, all tailwind classes are available when running npm start or gatsby develop

  1. npm install
  2. npm start

Building for production

In production, unused classes will be removed using PurgeCSS. If this breaks
your styles, read the docs for gatsby-plugin-purgecss.

In addition, postcss is preconfigured with autoprefixer.

  1. npm run build
  2. npm run serve

Customizing Tailwind

Open and edit the tailwind.config.js file in the project root.
You can find more help on how to configure tailwind in their docs.