Project

General

Profile

« Previous | Next » 

Revision 5b183386

Added by Ewoud Kohl van Wijngaarden about 6 years ago

Fixes #23587 - Verify webpack precompile is needed

Plugins like bastion do have a package.json but no webpack resources.

View differences:

lib/tasks/plugin_assets.rake
end
def compile
return unless File.exist?("#{@plugin.path}/webpack")
return unless File.exist?("#{@plugin.path}/package.json")
ENV["NODE_ENV"] ||= 'production'
webpack_bin = ::Rails.root.join('node_modules/webpack/bin/webpack.js')

Also available in: Unified diff