wvuweb / cleanslate-cms

A place to file issues and view releases for CleanSlate CMS. http://cleanslatecms.wvu.edu
6 stars 0 forks source link

Unhandled exception occurs in ThemeAssetPipeline::Javascript::compile when an invalid JS file is specified #272

Closed nreckart closed 2 years ago

nreckart commented 2 years ago

Specifying an invalid JS file path when using <r:include_javascript> or <r:javascript_url> results in a 500 application error.

Example of issue: https://taxservices.wvu.edu/javascripts/1580826578/vendor/responsive-nav.js&responsive-nav--custom.js&vendor

It the above case the &vendor at the end isn't a valid JS file. It's a directory. Invalid JS file paths should be detected and skipped when compiling the target JS.