Class: Webpack::Configuration
- Inherits:
-
Object
- Object
- Webpack::Configuration
- Defined in:
- lib/webpack/configuration.rb
Instance Attribute Summary collapse
- #cdn_host ⇒ Object
-
#extract_css ⇒ Object
Returns the value of attribute extract_css.
- #host ⇒ Object
- #port ⇒ Object
- #protocol ⇒ Object
- #public_path ⇒ Object
- #static_path ⇒ Object
-
#use_server ⇒ Object
Returns the value of attribute use_server.
Instance Method Summary collapse
Instance Attribute Details
#cdn_host ⇒ Object
19 20 21 |
# File 'lib/webpack/configuration.rb', line 19 def cdn_host @cdn_host end |
#extract_css ⇒ Object
Returns the value of attribute extract_css.
25 26 27 |
# File 'lib/webpack/configuration.rb', line 25 def extract_css @extract_css end |
#host ⇒ Object
7 8 9 |
# File 'lib/webpack/configuration.rb', line 7 def host @host end |
#port ⇒ Object
4 5 6 |
# File 'lib/webpack/configuration.rb', line 4 def port @port end |
#protocol ⇒ Object
10 11 12 |
# File 'lib/webpack/configuration.rb', line 10 def protocol @protocol end |
#public_path ⇒ Object
13 14 15 |
# File 'lib/webpack/configuration.rb', line 13 def public_path @public_path end |
#static_path ⇒ Object
16 17 18 |
# File 'lib/webpack/configuration.rb', line 16 def static_path @static_path end |
#use_server ⇒ Object
Returns the value of attribute use_server.
22 23 24 |
# File 'lib/webpack/configuration.rb', line 22 def use_server @use_server end |
Instance Method Details
#validate! ⇒ Object
27 28 29 30 |
# File 'lib/webpack/configuration.rb', line 27 def validate! fail 'Webpack public_path is not configured' unless public_path fail 'Webpack port is not configured' unless port || host end |