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