Class: Parceler::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#autoresolveObject

Returns the value of attribute autoresolve.



20
21
22
# File 'lib/parceler.rb', line 20

def autoresolve
  @autoresolve
end

#cacheObject

Returns the value of attribute cache.



20
21
22
# File 'lib/parceler.rb', line 20

def cache
  @cache
end

#content_hashingObject

Returns the value of attribute content_hashing.



20
21
22
# File 'lib/parceler.rb', line 20

def content_hashing
  @content_hashing
end

#destinationObject

Returns the value of attribute destination.



20
21
22
# File 'lib/parceler.rb', line 20

def destination
  @destination
end

#entry_pointObject

Returns the value of attribute entry_point.



20
21
22
# File 'lib/parceler.rb', line 20

def entry_point
  @entry_point
end

#minifyObject

Returns the value of attribute minify.



20
21
22
# File 'lib/parceler.rb', line 20

def minify
  @minify
end

#source_mapsObject

Returns the value of attribute source_maps.



20
21
22
# File 'lib/parceler.rb', line 20

def source_maps
  @source_maps
end