Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit handling of files to specified outputs types & usable templating langs #93

Merged

Conversation

stevenosloan
Copy link
Collaborator

Adds a check for processable? that checks against:

  • output types that we select (for now .css & .js)
  • input types that sprockets can handle

This should alleviate issues where html files, dot files, or template types that sprockets doesn’t support (less for example) throw errors while middleman itself can handle them just fine. We might start to see reports of sprockets not handling files as user would expect (.less for example), so it’s something to be aware of.

This should close #90, #85, and cover the html case of #87.

@eaigner, @morgoth, @Aetherus if y'all can give this a shot that'd be great. To test, in your Gemfile:

gem 'middleman-sprockets', github: 'stevenosloan/middleman-sprockets', branch: 'filter_out_unhandled_types'

@tdreyno
Copy link
Member

tdreyno commented Feb 23, 2016

Very smart 👍

@stevenosloan stevenosloan changed the title Limit handling of files to specified outputs types & usable tempting langs Limit handling of files to specified outputs types & usable templating langs Feb 23, 2016
…g langs

Adds a check for `processable?` that checks against:
- output types that we select (for now .css & .js)
- input types that sprockets can handle

This should alleviate issues where html files, dot files, or template types that sprockets doesn’t support (less for example) throw errors while middleman itself can handle them just fine. We might start to see reports of sprockets *not* handling files as user would expect (.less for example), so it’s something to be aware of.

[close middleman#90, middleman#85]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when trying to use less
2 participants