Class: Webpack::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/webpack/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cdn_hostObject



16
17
18
# File 'lib/webpack/configuration.rb', line 16

def cdn_host
  @cdn_host
end

#extract_cssObject

Returns the value of attribute extract_css.



22
23
24
# File 'lib/webpack/configuration.rb', line 22

def extract_css
  @extract_css
end

#hostObject



7
8
9
# File 'lib/webpack/configuration.rb', line 7

def host
  @host
end

#portObject



4
5
6
# File 'lib/webpack/configuration.rb', line 4

def port
  @port
end

#public_pathObject



10
11
12
# File 'lib/webpack/configuration.rb', line 10

def public_path
  @public_path
end

#static_pathObject



13
14
15
# File 'lib/webpack/configuration.rb', line 13

def static_path
  @static_path
end

#use_serverObject

Returns the value of attribute use_server.



19
20
21
# File 'lib/webpack/configuration.rb', line 19

def use_server
  @use_server
end

Instance Method Details

#validate!Object



24
25
26
27
# File 'lib/webpack/configuration.rb', line 24

def validate!
  fail 'Webpack public_path is not configured' unless public_path
  fail 'Webpack port is not configured' unless port || host
end