Class: WebpackDriver::Compile
- Defined in:
- lib/webpack_driver/compile.rb
Constant Summary
Constants inherited from Process
Instance Attribute Summary
Attributes inherited from Process
Instance Method Summary collapse
-
#initialize(config) ⇒ Compile
constructor
A new instance of Compile.
- #valid? ⇒ Boolean
Methods inherited from Process
Constructor Details
#initialize(config) ⇒ Compile
Returns a new instance of Compile.
5 6 7 8 |
# File 'lib/webpack_driver/compile.rb', line 5 def initialize(config) config.environment ||= { NODE_ENV: 'production' } super('webpack', config) end |
Instance Method Details
#valid? ⇒ Boolean
10 11 12 |
# File 'lib/webpack_driver/compile.rb', line 10 def valid? !alive? && super end |