You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually you only need one file from a package. You can expose that single file using NPM_FILE_PATTERNS, but the nesting of folders can still be annoying.
And now I get the file at 'static/js/vendor/jszip/dist/jszip.min.js'. The dist folder here is unneeded. In addition, I actually don't bother with the jszip directory, but want to have the file directly in the folder, as I am already nesting it using NPM_STATIC_FILES_PREFIX.
So, I just want to have the file in 'static/js/vendor/jszip.min.js'.
You might be able to allow for configuration by having the NPM_FILE_PATTERNS as a tuple with ("source", "destination").
The text was updated successfully, but these errors were encountered:
Usually you only need one file from a package. You can expose that single file using NPM_FILE_PATTERNS, but the nesting of folders can still be annoying.
For example, if I need jszip I will include:
And now I get the file at 'static/js/vendor/jszip/dist/jszip.min.js'. The dist folder here is unneeded. In addition, I actually don't bother with the jszip directory, but want to have the file directly in the folder, as I am already nesting it using NPM_STATIC_FILES_PREFIX.
So, I just want to have the file in 'static/js/vendor/jszip.min.js'.
You might be able to allow for configuration by having the NPM_FILE_PATTERNS as a tuple with ("source", "destination").
The text was updated successfully, but these errors were encountered: