lib/sewing_kit/webpack/helper.rb in sewing_kit-0.5.7 vs lib/sewing_kit/webpack/helper.rb in sewing_kit-0.5.8

- old
+ new

@@ -10,9 +10,10 @@ class UnknownJavaScriptAssetError < StandardError end def sewing_kit_asset_paths(source, extension: 'js') return '' unless source.present? + return '/webpack/assets/dll/vendor.js' if Rails.env.development? && 'vendor' == source && extension == 'js' return '' if ['runtime', 'vendor'].include?(source) && !Rails.env.production? paths = SewingKit::Webpack::Manifest.asset_paths(source) return '' unless paths[extension]