linkedin / css-blocks

High performance, maintainable stylesheets.
http://css-blocks.com/
BSD 2-Clause "Simplified" License
6.34k stars 152 forks source link

feat: Basic preprocessor support. #352

Closed chriseppstein closed 4 years ago

chriseppstein commented 4 years ago

This PR adds basic support for any preprocessors that are set up in the css-blocks' configuration file. Because any extension is technically supported, we have to go to the disk to see what files actually exist according to expected naming conventions so that we can return the path to the correct file. Stylesheets that appear to be block files (e.g. named *.block.*) but aren't supported by the preprocessor configuration are basically ignored right now because otherwise CSS Blocks would just throw an error if we tried to parse it.

TODO:

jackson-dean commented 4 years ago

implementation lgtm!