require_tree ../something works when compression: false even if path is not defined in assets:sources in _config.yml, but the same require_tree is silently ignored when compression: true #619
Labels
Milestone
Problem with
require_tree
Use case:
main.js:
When
compression: false
is set, files inside the above directory will be included in the output of main.js.However, when
compression: true
is set, this directory will NOT be included in the output of main.js. What's more, it will NOT raise any error during build.require
is not affectedmain.js:
require
works as expected. That is, it raises an error.Only after adding
_assets/_sass/vendor/dreamhost-css/src/js
toassets:sources
makes it pass.Request
Make
require_tree
always throw an error if the path where a JS is to be required from isn't listed inassets:sources
, just likerequire
.The text was updated successfully, but these errors were encountered: