Letractively / js-css-minify-compress

Automatically exported from code.google.com/p/js-css-minify-compress
0 stars 0 forks source link

JS minification removes "use strict"; #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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