s9gf4ult
s9gf4ult

Reputation: 862

Rails compress assets even in development mode

Rails just compress javascript in development mode but i dont need to. Here is the config/environments/development.rb

# Do not compress assets
config.assets.compress = false

# Expands the lines which load the assets
config.assets.debug = true

Rails version is 3.2.8 but also tried 3.2.9-rc3, 3.1.8 doesnt work with my application because it was created in 3.2.8

Upvotes: 1

Views: 1795

Answers (1)

s9gf4ult
s9gf4ult

Reputation: 862

I just found that rails serves precompiled assets instead of assets from app/ catalog when they are exist. Its need to remove them to make Rails work like i need.

rake assets:clean

I belive Rails must not behave that way in development mode.

Upvotes: 3

Related Questions