FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]
https://www.snowpack.dev
Other
727 stars 96 forks source link

[wip] @snowpack/plugin-sass & @snowpack/plugin-postcss #167

Closed drwpow closed 4 years ago

drwpow commented 4 years ago

Adds 2 new plugins for handling Sass & PostCSS. 💅

WIP because it’s currently blocked by:

  1. Release of Snowpack w/ updated plugin API
  2. Re-adding the original file location on disk for plugins to use (Sass needs this to resolve relative imports).
piotr-cz commented 4 years ago

I've never used sass, but it looks like postcss may be extended to use it: https://www.postcss.parts/tag/sass

drwpow commented 4 years ago

it looks like postcss may be extended to use it: https://www.postcss.parts/tag/sass

Ah sorry—missed this comment. PostCSS can understand Sass syntax through a number of plugins, but it can’t compile it. So unfortunately, we currently do need to run both Sass + PostCSS together (though somewhat annoying, it’s a common pattern the Sass community is used to and is the default way of doing things).