Class: Guard::Webpack
- Inherits:
-
Object
- Object
- Guard::Webpack
- Defined in:
- lib/guard/webpack.rb
Defined Under Namespace
Classes: Runner
Constant Summary collapse
- DEFAULT_OPTIONS =
{ d: false, progress: true, colors: true }
Instance Attribute Summary collapse
-
#runner ⇒ Object
Returns the value of attribute runner.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Webpack
constructor
A new instance of Webpack.
- #reload ⇒ Object
- #run_all ⇒ Object
- #run_on_modifications(p) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
Instance Attribute Details
#runner ⇒ Object
Returns the value of attribute runner.
12 13 14 |
# File 'lib/guard/webpack.rb', line 12 def runner @runner end |
Instance Method Details
#reload ⇒ Object
23 |
# File 'lib/guard/webpack.rb', line 23 def reload; @runner.restart; end |
#run_all ⇒ Object
22 |
# File 'lib/guard/webpack.rb', line 22 def run_all; @runner.restart; end |
#run_on_modifications(p) ⇒ Object
21 |
# File 'lib/guard/webpack.rb', line 21 def run_on_modifications(p); @runner.restart; end |
#start ⇒ Object
24 |
# File 'lib/guard/webpack.rb', line 24 def start; @runner.start; end |
#stop ⇒ Object
25 |
# File 'lib/guard/webpack.rb', line 25 def stop; @runner.stop; end |