Skip to content

Conversation

@mcevskb
Copy link

@mcevskb mcevskb commented Oct 14, 2012

buildify()
  .load('/assets/javascripts/app.coffee')
  .compileCoffee()
  .uglify()
  .save('/public/javascripts/application.min.js')
  .clear()
  .concat(['/assets/stylesheets/normalize.custom.css', '/assets/stylesheets/estilos.styl'])
  .compileStyl()
  .cssmin()
  .save('/public/stylesheets/estilos.min.css');

@qgustavor
Copy link

Rather than compileStyl and compileCoffee will not be better only the compileCSS and compileJS with a processor argument specifying that compiler to use?

It allows me to use LiveScript instead of CoffeeScript and Less instead of Stylus, for example.

@powmedia
Copy link
Owner

If they have the same method signature that would make sense to keep it more generic

@qgustavor
Copy link

For now I will fork the project and adapt it to work with mine, but I think that there's a way to do that, even with different methods. Maybe I think on one when doing that.

I found another library that works best for me when searching for a solution, thanks.

@qgustavor
Copy link

How about anonymous functions? .compileJS(function (code) {return require('LiveScript').compile(code);})

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.

3 participants