Skip to content

Sass support: HTTP instead FileIO to access file's contents  #25

@kamilafsar

Description

@kamilafsar

Hey dirkmc,

Firstly, thanks for such a great plugin.

Last week, we've integrated press into our project and that all works fine for js and css files. Since we're also using a lot of SCSS we needed a way to get compile it before feeding press with it's contents.
In order to do that, I've sort of merged "press" with "play-sass" (https://github.com/guillaumebort/play-sass). It's a bit hacky but it all works fine.

After having it all work, I thought of something better: why doesn't press get the content of files via HTTP instead of FileIO. At least for less, coffee, sass and scss files. The Compressors should declare which file extensions they're interested in, but need to be read via HTTP. Reading those files with HTTP abstracts the knowlegde away from press, about how to compile those file into ordinary js/css. Instead another module could take care of that, as play-sass does really well.

Is there something I'm missing here?

Thanks in advance,

Kamil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions