DEV Community

Discussion on: Getting Started Tailwindcss with Gridsome Without Using Plugin

Collapse
 
zooly profile image
Hugo Torzuoli

Interesting and easy way to add Tailwind.css to Gridsome project. I've achieved this some weeks ago doing this :

module.exports = {
  // ...
  chainWebpack: config => {
    config.module
      .rule("postcss-loader")
      .test(/.css$/)
      .use(["tailwindcss", "autoprefixer"])
      .loader("postcss-loader");
  }
}
Collapse
 
kamalhm profile image
Kamal

where should I go to add purgecss on build process?

Collapse
 
zooly profile image
Hugo Torzuoli

You can see this issue: github.com/gridsome/gridsome/issues/9

Collapse
 
purwnt profile image
Purwanto

Thank you Hugo, It looks like the code above is interesting. I'll try to implement that and update on this post.