0

in my asp.net core project I have bundleconfig.json:

"outputFileName": "wwwroot/js/site.min.js",
"inputFiles": [
  "wwwroot/js/a.js",
  "wwwroot/js/b.js
],

and I reference the bundle in _Layout.cshtml like this:

<script src="~/js/site.min.js"></script>

If I edit a.js or b.js the changes won't go to site.min.js until I build the project.

Is it possible to update the bundle (site.min.js) on save ?

3
  • According to the docs It should work as-is. It seems as though there are number of different configuration changes you can make to it though through right-clicking on the bundleconfig.json. Any possibility you undid one of those options? Commented Nov 29, 2018 at 17:22
  • I don't have that when I right click, looks like I need to install the VS extension from your link Commented Nov 29, 2018 at 17:32
  • thank you, installing the VS extension did it, now the site.min.js is updated on save. You should add your comment as an answer Commented Nov 29, 2018 at 17:40

1 Answer 1

1

This functionality is enabled through a VS Extension. It looks like you need to install the VS Extension and make sure it is appropriately configured.

According to the docs it should work as-is. It seems as though there are number of different configuration changes you can make to it though through right-clicking on the bundleconfig.json.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.