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

JS minification removes "use strict"; #13

Closed
GoogleCodeExporter opened this issue Mar 30, 2016 · 1 comment
Closed

JS minification removes "use strict"; #13

GoogleCodeExporter opened this issue Mar 30, 2016 · 1 comment
Assignees
Milestone

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a JavaScript file like the following:

(function () {
   'use strict';

    var something = 1;

}());

2. Use this plugin to minify the JS file.
3. See that the minified JS file lacks 'use strict'.

What is the expected output? What do you see instead?

I would expect the minified file to still contain the 'use strict'; directive, 
rather than removing it (since it affects the functioning of the code).

What version of the product are you using? On what operating system?

I'm using version 2.2.1 of the "JS CSS Minify Compress" NetBeans plugin, with 
NetBeans version 8.0.2 on Windows 7.

Please provide any additional information below.


Original issue reported on code.google.com by matt_hen...@sil.org on 27 Jul 2015 at 6:09

@Chris2011
Copy link
Owner

AFter using 2.4.0, I got this output:

'use strict';(function(){})();

is this acceptable or not? If not, please reopen the issue.

@Chris2011 Chris2011 modified the milestone: 2.4.0 Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants