Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

[v2.6.2] JS files are not minified in release mode if "pdb-only" is selected in project settings #370

Open
JechoJekov opened this issue Dec 15, 2014 · 1 comment

Comments

@JechoJekov
Copy link

When "pdb-only" is selected in project settings -> Build -> Advanced -> Output the compiler does not minify the output JS files. By default this option is set for new projects created in VS.

This may not be categorized as a bug, however, it is unexpected and can be puzzling when happens. Perhaps the "Optimize code" option can be used to decide if the JS file should be minimized. This SO question explains how to check if it was turned on during compilation:
http://stackoverflow.com/questions/3533573/is-there-a-way-to-tell-if-a-c-sharp-assembly-has-been-compiled-with-the-optimiza

@JechoJekov JechoJekov changed the title [v2.6.2] JS files are not minified in release mode if "pbd-only" is selected in project settings [v2.6.2] JS files are not minified in release mode if "pdb-only" is selected in project settings Dec 15, 2014
@erik-kallen
Copy link
Contributor

Don't know if it should be considered a bug, but I do agree with you. At least in v3, the options will be

  • DebugInfo = full: Non-minified script, source maps,
  • DebugInfo = pdbonly: Minified script, source maps,
  • DebugInfo = none: Minified script, no source maps.

@erik-kallen erik-kallen added this to the 3.0 milestone Apr 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants