Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Created January 18, 2013 07:51
Show Gist options
  • Select an option

  • Save toolmantim/4563015 to your computer and use it in GitHub Desktop.

Select an option

Save toolmantim/4563015 to your computer and use it in GitHub Desktop.
Configuring sinatra asset-pack to retain line numbers
require 'sinatra'
require 'sinatra/assetpack'
assets do
js :app, '/app.js', ['js/*.js']
js_compression :uglify,
# Add new lines
beautify: true,
# Don't add indentation
beautify_options: {indent_level: 0}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment