Class: Sprockets::WebpackIndex
- Inherits:
-
Index
- Object
- Index
- Sprockets::WebpackIndex
- Defined in:
- lib/sprockets/webpack_index.rb
Instance Method Summary collapse
Instance Method Details
#find_asset(*args) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/sprockets/webpack_index.rb', line 6 def find_asset(*args) if @environment.webpack_task_config[:dev_server] || @environment.webpack_task_config[:watch] # ensure webpack-dev-server is running or watcher has finished building WebpackRails::Task.run_webpack(@environment.webpack_task_config) end super end |