dwightjack / grunt-premailer

Grunt wrapper task for Premailer
MIT License
114 stars 16 forks source link

bundleExec error #27

Closed mkoehler2911 closed 9 years ago

mkoehler2911 commented 9 years ago

Hi! I'm using the premailer for my grunt project. Now, I'd like to use the option.bundle Exec.

My Gruntfile: premailer: { html: { options: { mode : 'html', removeComments: true, bundleExec: true }, files: [{ expand: true, src: ['dist/.html'], dest: '' }] }, txt: { options: { mode: 'txt' }, files: [{ expand: true, src: ['dist/.html'], dest: '', ext: '.txt' }] } }

I run my grunt and I got these Errors: Running "premailer:html" (premailer) task Could not locate Gemfile Could not locate Gemfile Could not locate Gemfile Fatal error: Error

If I delete the line "bundleExec: true" everything works fine. Any ideas? Thanks!!!

mkoehler2911 commented 9 years ago

Solved: Added :css_to_attributes => true inside of premailer.rb

dwightjack commented 9 years ago

This looks weird. The bundleExec option just prepends bundle exec to the CLI command.

The error looks like you miss a Gemfile on your project which is a required file in order for bulder to work.