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
{{ message }}
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
Getting inspiration from this gist and using glob-fs, we could implement an option to load as entries all main.js files that appear under the provided folder structure as an option.
CC @dero / @DamianSam
var files = glob.readdirSync('./app/Resources/assets/js/**.js');
// Use each entry to build the key and add them to entries
var entries = {};
for (var i = 0, l = files.length; i < l; i++) {
var key = files[i].replace('app/Resources/assets/js/','').replace('.js', '');
entries[key] = source_dir + '/js/' + key;
}
The text was updated successfully, but these errors were encountered:
Getting inspiration from this gist and using glob-fs, we could implement an option to load as entries all main.js files that appear under the provided folder structure as an option.
CC @dero / @DamianSam
The text was updated successfully, but these errors were encountered: