Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globbing patterns with bundling always produces a path relative to current directory instead of the root. #136

Closed
mbriggs9374 opened this issue Oct 1, 2020 · 2 comments · Fixed by #207

Comments

@mbriggs9374
Copy link

The following glob pattern produces a path relative to the current directory instead of the root.
pipeline.AddJavaScriptBundle("/bundles/scripts", "/Scripts/**/*.js") --> <script src="Scripts/subfolder1/file1.js"></script>

Expecting:
pipeline.AddJavaScriptBundle("/bundles/scripts", "/Scripts/**/*.js") --> <script src="/Scripts/subfolder1/file1.js"></script>

Manually adding each subfolder & file results in the expected results.

@mbriggs9374 mbriggs9374 changed the title Globbling patterns with bundling always produces a path relative to current directory instead of the root. Globbing patterns with bundling always produces a path relative to current directory instead of the root. Oct 1, 2020
@mbriggs9374
Copy link
Author

I also want to note that this happens in Development mode where all of the files included in the bundle are added to the page individually.

I see an approved pull request that should resolve this issue: #118

@mrdnote
Copy link

mrdnote commented Jun 3, 2021

I can confirm that this bug is still an issue in the v3.0.311 of the nuget package.

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 a pull request may close this issue.

2 participants