Skip to content

Commit

Permalink
Documentation and changelog updated
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-menendez committed Sep 30, 2023
1 parent d4e9693 commit 7a82b7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changelog

## 1.0.0 - 2023-09-24
## 1.0.0 (24 September 2023)

- Initial release
3 changes: 2 additions & 1 deletion lib/sprockets_terser_with_source_maps/compressor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
require 'logger'

module SprocketsTerserWithSourceMaps
class Compressor < Terser::Compressor # :nodoc:
# Custom compressor to generate sourcemaps
class Compressor < Terser::Compressor
attr_accessor :logger

def initialize(options = {})
Expand Down
3 changes: 2 additions & 1 deletion lib/sprockets_terser_with_source_maps/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
require 'action_controller/railtie'

module SprocketsTerserWithSourceMaps
class Railtie < ::Rails::Railtie # :nodoc:
# Railtie for Rails
class Railtie < ::Rails::Railtie
initializer 'sprockets-terser-with-source-maps.environment', group: :all do |app|
config = app.config
config.assets.sourcemaps_prefix ||= 'maps'
Expand Down

0 comments on commit 7a82b7e

Please sign in to comment.