chrism / emberjs-tailwind-purgecss

A guide to using Tailwind v1.0 and Purge CSS with EmberJS
71 stars 12 forks source link

Purge css not striping vendor.css? #16

Open mattmarcum opened 4 years ago

mattmarcum commented 4 years ago

Is this a known/expected issue or is it just me? I setup a new ember app and noticed that after I removed the welcome component from the app.hbs the vendor.css still had the ember-welcome css rules in it.

chrism commented 4 years ago

Thanks, it’s good to know.

dknutsen commented 4 years ago

From the ember-cli-postcss README:

The add-on can be used in two ways:

  • on individual files, referred to as “compile”
  • on all CSS files, referred to as “filter”

and also:

Filter This step will run at the end of the build process on all CSS files, including the merged vendor.css file and any CSS imported into the Broccoli tree by add-ons.

So I think if you move purgecss from compile plugins to filter plugins it should work