Skip to content

Conversation

@programcsharp
Copy link

Sometimes you don't want to move files around into different directories to be able to create a bundle with them. For example, if you're pulling in jQuery via nuget, you probably want to leave the .js in ~/Scripts and create a jQuery bundle that references that .js and an external CDN url.

Before, adding files by directory (which was used for bundle.txt) only added files in that package directory, even if the bundle.txt included relative paths to other files (like ~/Scripts/jquery-1.11.0.js). I added an extra check on add to ensure that allFiles is properly populated with relative path references from Assets.

I also removed a couple of extra allocations done by unneeded .ToArray() calls.

This also fixes #244.

Removed superfluous allocation from BundleFactoryBase.CreateBundle
Call relative path populate for add multiple subfolders
@programcsharp
Copy link
Author

Any chance of getting this merged in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bundle.txt doesn't recognize ../../ style paths

1 participant