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

can't use ScriptWithSourceMapBundle() with GenerateBundleResponse? #16

Open
mhenry1384 opened this issue Mar 30, 2019 · 3 comments
Open

Comments

@mhenry1384
Copy link

mhenry1384 commented Mar 30, 2019

We save off the generated bundle to a file with code that looks something like this:

var scriptBundle = new ScripBundle("~/Scripts/Js").IncludeDirectory("~/Themes/Default/Scripts/foundation/base", "*.js");
BundleTable.Bundles.Add(scriptBundle);
scriptBundle.GenerateBundleResponse(new BundleContext(ctx, BundleTable.Bundles, scriptBundle.Path));
File.WriteAllText(combinedPath, response.Content);

That doesn't work when I try using ScriptWithSourceMapBundle(). The response.Content() seems to have the uniminfied JavaScript after the minified JavaScript, and I there doesn't seem to be a way to get the map file so I can save that as well?

@benmccallum
Copy link
Owner

Hi @mhenry1384, sorry I haven't gotten to this. Did you find a solution?

@benmccallum
Copy link
Owner

Just checking in again, would you like me to take a further look?

@mhenry1384
Copy link
Author

Oh that would be aweseome. I never did find a solution.

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

No branches or pull requests

2 participants