Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Fix: check environment Gzip option #260

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Strech
Copy link

@Strech Strech commented Mar 24, 2016

In the sprockets you can disable gzipping your assets, but requirejs-rails ignore this option.
The second commit change Sprockets env call to the defined variable, instead of new ::Rails.application.assets call.

@Strech
Copy link
Author

Strech commented Mar 25, 2016

Ah, I found that gzip? appears only in sprockets 3.x, will add check about gzip? method

@Strech Strech force-pushed the fix/gzip-option branch 2 times, most recently from f774b2e to 94d7d99 Compare March 29, 2016 10:05
Skip gzip compression if it's disabled in Rails env.
Since we already have Rails env in requirejs.env it doesn't make
any sense to call file_digest from Rails
@Strech
Copy link
Author

Strech commented Mar 29, 2016

@carsomyr Hi, can you have a look on this PR?

@Deradon
Copy link

Deradon commented Mar 29, 2016

👍 :trollface:

@scudelletti
Copy link

Anyone? Ping @carsomyr, @billmag, @jwhitley

@billmag
Copy link
Contributor

billmag commented Apr 30, 2016

Hey @scudelletti -- apologies, but I'm no longer actively working on the project that uses this and have been out of touch on recent changes. @jwhitley or @carsomyr will have to reply.

@scudelletti
Copy link

Thanks for the reply @billmag we will wait for them.

@jwhitley
Copy link
Owner

jwhitley commented May 2, 2016

Sorry, I'm not much immediate help either. @carsomyr has been the active maintainer of this project for years now; I'm very out of touch. However, I'm happy to help get some additional maintainer assistance in place if life's pulled Roy in other directions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants