emberjs-tailwind-purgecss icon indicating copy to clipboard operation
emberjs-tailwind-purgecss copied to clipboard

Purge css not striping vendor.css?

Open mattmarcum opened this issue 5 years ago • 2 comments

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.

mattmarcum avatar Feb 08 '20 22:02 mattmarcum

Thanks, it’s good to know.

chrism avatar Mar 21 '20 11:03 chrism

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

dknutsen avatar Apr 20 '20 18:04 dknutsen