It looks like you're new here. If you want to get involved, click one of these buttons!
files: { ['dist/web/' + filename(projectSettings.name) + '.html']: [ 'twine-stories/*.html', 'src/**/*.{css,html,js,twee,tw,txt}' ].concat(projectSettings.extraPaths) },Would become
files: { ['dist/web/' + filename(projectSettings.name) + '.html']: [ 'twine-stories/*.html', ...orderedSourceFiles, 'src/**/*.{css,html,js,twee,tw,txt}' ].concat(projectSettings.extraPaths) }, // where outside you would have a list of ordered source files var orderedSourceFiles = ["src/library1.js", "src/library2.js"];
Comments
I wasn't sure if that was the proper way of doing it.