documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

Jammit.package! and mhtml css #118

Closed mrwokkel closed 13 years ago

mrwokkel commented 13 years ago

Jammit.package! does not generate mhtml variant.

jashkenas commented 13 years ago

I beg to differ.

ghost commented 13 years ago

We happen to experience the same behaviour

ghost commented 13 years ago

Solved the issue - which wasn't an issue.

If you're using "embed_assets", and you wish to precompile the MHTML stylesheet variants, you must specify the "base-url".

Options: -o, --output PATH output folder for packages (default: "public/assets") -c, --config PATH path to assets.yml (default: "config/assets.yml") -u, --base-url URL base URL for MHTML (ex: "http://example.com") -f, --force force a rebuild of all assets -v, --version display Jammit version

i.e. provide Jammit with the 'base url'

jashkenas commented 13 years ago

The above commit should give you a better error message when misconfigured like this.

ghost commented 13 years ago

Thank you for implementing this!

ParthivPatel-BTC commented 10 years ago

Jammit css and js not load

ActionView::Template::Error (undefined method include_stylesheets' for #<#<Class:0x0000000419c6d0>:0x000000041a35c0>): 2: %html 3: %head 4: %title= Settings.app_name 5: = include_stylesheets :canvas, :media => 'all' 6: = include_javascripts :canvas 7: = javascript_include_tag 'home/custom.js.coffee' 8: = csrf_meta_tags app/views/layouts/home.html.haml:5:in_app_views_layouts_home_html_haml__2155835962579908780_34448340' app/controllers/website/home_controller.rb:11:in `home'

I did all steps :- http://stackoverflow.com/questions/24554448/jammit-gem-error-on-production

Please help.Thanx