Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

andrewmcodes-archive/webpack-tailwind-repro

 
 

Repository files navigation

Webpack with Tailwind 2.0

Interesting things to notice:

  • src/css/ has app-base, app-components and app-utilities split up.
  • src/css/mine.css contains "my" styles.
  • webpack mode: 'development', is an important piece for performance.
  • I enabled all the colors in tailwind.config.js and also enabled darkMode, which results in a 16 MB file.

2 scripts:

  • yarn webpack-hmr runs webpack serve with webpack dev server
  • yarn webpack-watch runs webpack --watch

When one of those scripts are running, you can change the code inside mine.css and it should rebuild pretty fast.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.5%
  • CSS 20.6%
  • HTML 11.9%