By default, your assets will be minified in production environments. If this is not what you would like, there are two ways you can adjust this.
The simplest way to do this, is by disabling minification using the minify() method
The other way you could do this is by changing the environment manually. If this method is not called, the environment will be automatically detected.
Building your asset file
To put all the pieces together, you must run this command before passing to your view.
One important thing to remember, is that this method will only write a new asset file if it does not already exist. In development environments, a new filename will be created whenever any of the asset files change. In a production environment, a new filename will be created whenever the file name of one of the asset files changes.
The best ways to utilize this, is to clear the output directory of old files when you push changes to production, or to tag your js file names with version numbers.
Referencing the output