We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug I have a JS file with "$(document).ready(function ()" and other functions, bundleconfig.json is:
.... { "outputFileName": "wwwroot/bundles/Scripts/Shared/header.min.js", "inputFiles": [ "wwwroot/Scripts/Shared/_header.js" ], "minify": { "enabled": true, "renameLocals": true }, "sourceMap": false } ....
but in the output file missing all "$(document).ready(function ()" file start with first function (see screenshot)
Visual Studio Community 2022 Version 17.5.3 Bundler and Minifier ver 2.9.9
Expected behavior min file with all part of original js file
Screenshots original file JS:
min file:
thank you for your help
The text was updated successfully, but these errors were encountered:
Can you post the minified source code? I suspect that your $(document).ready(function () ... ) was optimized into a shorthand version like $($ => ...) or $(function($)...) so your search fails. See https://stackoverflow.com/questions/6004129/document-ready-shorthand
$(document).ready(function () ... )
$($ => ...)
$(function($)...)
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I have a JS file with "$(document).ready(function ()" and other functions, bundleconfig.json is:
but in the output file missing all "$(document).ready(function ()" file start with first function (see screenshot)
Visual Studio Community 2022 Version 17.5.3
Bundler and Minifier ver 2.9.9
Expected behavior
min file with all part of original js file
Screenshots
original file JS:
min file:
thank you for your help
The text was updated successfully, but these errors were encountered: