Sha256: cb0328b12b7b21fcda94d5523c04336c466a7ade687ac7b5a8b331e8494cedc4

Contents?: true

Size: 668 Bytes

Versions: 11

Compression:

Stored size: 668 Bytes

Contents

require_relative './task'

namespace :webpack do
  task :watch do
    puts 'watching for webpack changes'
    WebpackRails::Task.with_app_node_path do
      system "WEBPACK_STDOUT_LOGGING=yes #{WebpackRails::Task.node_command} #{WebpackRails::Task.webpack_task_script}"
    end
  end

  task :build_once => :environment do
    WebpackRails::Task.build_once(Rails.application.config.webpack_rails)
  end
end

# runs before every 'rake assets:precompile'
# with production config, sprockets index isn't updated correctly by the
# find_asset monkey patch. instead, we just run it before precompiling assets
Rake::Task['assets:precompile'].enhance(['webpack:build_once'])

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
webpack_rails-2.0.1 lib/webpack_rails/webpack.rake
webpack_rails-2.0.0 lib/webpack_rails/webpack.rake
webpack_rails-1.3.1 lib/webpack_rails/webpack.rake
webpack_rails-1.3.0 lib/webpack_rails/webpack.rake
webpack_rails-1.2.2 lib/webpack_rails/webpack.rake
webpack_rails-1.2.1 lib/webpack_rails/webpack.rake
webpack_rails-1.2.0 lib/webpack_rails/webpack.rake
webpack_rails-1.1.1 lib/webpack_rails/webpack.rake
webpack_rails-1.1.0 lib/webpack_rails/webpack.rake
webpack_rails-1.0.1 lib/webpack_rails/webpack.rake
webpack_rails-1.0.0 lib/webpack_rails/webpack.rake