Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9121197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:48:21+00:00 2026-06-17T05:48:21+00:00

I would like to have the non-minified version of JavaScript libraries being used in

  • 0

I would like to have the non-minified version of JavaScript libraries being used in development, and the minified versions used elsewhere.

How would I go about doing this if I’m using Rails assets?

I’m including like this:

application.haml

= javascript_include_tag :application

application.js

//= require jquery/jquery-1.7.2.min.js
//= require jquery/jquery-ui-1.8.20.custom.min.js
... and many more
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:48:22+00:00Added an answer on June 17, 2026 at 5:48 am

    The better thing to do is use the :debug option

    = javascript_include_tag "application", debug: Rails.env.development?
    

    In debug mode, assets are not minified.

    If you’re actually maintaining 2 versions of each library (for example, a minified and raw version of jQuery), this is unnecessary. If you want to see the raw jQuery source in your browser’s console, you should always use the unminified version of the library in combination with the :debug option above.

    • In development an unminified version of jQuery will be included in it’s own <script> tag
    • in production jQuery will be minified and concatenated with all other assets in application.js in a single <script> tag.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 4 files and would like to know elements which are non overlapping
I would like to detect strings that have non-whitespace characters in them. Right now
My Goal I would like to have a main processing thread (non GUI), and
I just installed drupal-7.16. I would like to have following functionality: As a non-admin
I would like to have a service start at boot, as a non-root user
for example, I have a ( non-static ) class Foo<T> I would like to
I would like to have a non-required Moose attribute that can be set only
I have non-consecutive, but ordered numeric identifiers. I would like to get consecutive values.
I would like to have some Javascript code running in a web browser write
I have a csv file with about 30 columns that i would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.