Class: Parceler::Configuration
- Inherits:
-
Object
- Object
- Parceler::Configuration
- Defined in:
- lib/parceler.rb
Overview
Configuration options defined here have direct relations to those defined in the official documentation parceljs.org/cli.html
Instance Attribute Summary collapse
-
#autoresolve ⇒ Object
Returns the value of attribute autoresolve.
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#content_hashing ⇒ Object
Returns the value of attribute content_hashing.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#entry_point ⇒ Object
Returns the value of attribute entry_point.
-
#minify ⇒ Object
Returns the value of attribute minify.
-
#source_maps ⇒ Object
Returns the value of attribute source_maps.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 28 29 30 |
# File 'lib/parceler.rb', line 22 def initialize @entry_point = "app/javascript/application.js" @destination = "public/parcels" @cache = nil @source_maps = false @minify = true @content_hashing = true @autoresolve = false end |
Instance Attribute Details
#autoresolve ⇒ Object
Returns the value of attribute autoresolve.
20 21 22 |
# File 'lib/parceler.rb', line 20 def autoresolve @autoresolve end |
#cache ⇒ Object
Returns the value of attribute cache.
20 21 22 |
# File 'lib/parceler.rb', line 20 def cache @cache end |
#content_hashing ⇒ Object
Returns the value of attribute content_hashing.
20 21 22 |
# File 'lib/parceler.rb', line 20 def content_hashing @content_hashing end |
#destination ⇒ Object
Returns the value of attribute destination.
20 21 22 |
# File 'lib/parceler.rb', line 20 def destination @destination end |
#entry_point ⇒ Object
Returns the value of attribute entry_point.
20 21 22 |
# File 'lib/parceler.rb', line 20 def entry_point @entry_point end |
#minify ⇒ Object
Returns the value of attribute minify.
20 21 22 |
# File 'lib/parceler.rb', line 20 def minify @minify end |
#source_maps ⇒ Object
Returns the value of attribute source_maps.
20 21 22 |
# File 'lib/parceler.rb', line 20 def source_maps @source_maps end |