FAQ Database Discussion Community


What the meaning of browserify . -t [envify --NODE_ENV production] | uglifyjs -cm > js/bundle.min.js

npm,browserify,uglifyjs
I saw this in flux chat examplethe. browserify . -t [envify --NODE_ENV production] | uglifyjs -cm > js/bundle.min.js Why is browserify . -t [envify --NODE_ENV production] used here? How is the . used? Why is [envify --NODE_ENV production] used after -t? ...

Webpack optimize with UglifyJS plugin causes runtime error

javascript,reactjs,uglifyjs,webpack
I have an isomorphic React application that is bundled via webpack. I have 2 entry points corresponding to 2 bundled file outputs: vendors.js and app.js. When running the webpack-dev-server or when compiling without any optimization flags, everything works fine. However, as soon as I try to use the Uglify plugin,...

Browserify uglify via node script or command line?

javascript,node.js,gulp,browserify,uglifyjs
It seems in many places the professionals are building their projects using a node.js script that involves either gulp or grunt. What I can't figure out though, is why the script method is preferrable? When switching from the command line version to the script version, you add other packages in:...

How to install uglify-js on Travis CI?

travis-ci,uglifyjs
My build is failing on Travis CI because uglify-js won't install. The relevant parts of the output log are below. I am installing nodejs and npm because this is a language: cpp build not a language: node_js build (its a C++ library with bindings to other languages, including some client...

Which tool used to uglify this piece of code?

javascript,uglifyjs
While checking source code of a page I saw the JS code uglified as seen here: eval((function(D28){for(var J28="",p28=0,C28=function(D28,y28){for(var L28=0,E28=0;E28=32&&t28<=127){L28+=t28-32;}}return L28;};p28((0x50,48.)>(54.0E1,99.)?2:1.3860E3<=(27.,0xA9)?(1.95E2,0x229):13.98E2<(126,0x240)?2:(0x1B2,0x19F)>(0x9F,105)?(140.,0):(104.,0xF3)<=99?\"W\"` Q 6E,19))){I=X.substring(v,Q);c=I.length;return Y(I,c,x);}else if(v===((13.25E2,77.)>=(0x157,146.)?(26.,70.9E1):(0x213,10.59E2)<` F...

Different sbt-web pipeline task settings in development vs production?

playframework,sbt,playframework-2.3,uglifyjs,sbt-web
I would like an sbt setting to have a different value when running in development (sbt run) than production (sbt dist / sbt start). Specifically I am using sbt-uglify. I use it in development to concatenate javascript assets into one file. I have compression and mangling disabled in development because...

how to uglify javascript wiithout minifying it?

javascript,uglifyjs
I'm trying to debug some errors in my JS. I usually use gulp + uglify to get an ugly minified one-liner. Now I need to get the file with the original lines intact to know which line gave me an error - but I'd still like to keep an atmosphere...

External Source Map Tool

javascript,uglifyjs,source-maps
I have a minimized file in production, with a an error handler that logs the errors, as well as the source map that was generated when I minified the file, however I have no way to map the errors to my source file since the errors are in a log...

Sentry - JavaScript Projects and Source Maps

error-logging,uglifyjs,source-maps,sentry
i have some questions about the Sentry handling of minified JavaScript code. My Projects have around ~3 MB of regular JavaScript, in production its reduced to 200 - 400kb. How does it work if Sentry is implemented plus JavaScript Sourcemaps. If an error appears, will the client load the sourcemap...

angular-bootstrap modal background is not transparent after uglify

angularjs,twitter-bootstrap,gulp,uglifyjs,angular-bootstrap
Angular Bootstrap modal is not working correctly in Gulp production mode, but in dev mode it works fine. My GULP method which responsible for code compression: gulp.task('scripts-prod', function() { return gulp.src(paths.vendorJavascript.concat(paths.appJavascript, paths.appTemplates)) .pipe(plugins.if(/html$/, buildTemplates())) .pipe(plugins.concat('app.js')) .pipe(plugins.ngAnnotate()) .pipe(plugins.uglify({ mangle: { except: ['angular', 'angular-bootstrap'] } })) .pipe(plugins.rev()) .pipe(gulp.dest(paths.publicJavascript))...

uglifyjs javascript inside php files

javascript,php,minify,uglifyjs
My project has a lot of JS code inside PHP files. I want to minify the JS code in these files and I like the uglifyjs2 program. Is it possible for that (or any) JS minifier to act on JS code INSIDE a php file? Someone is going to suggest...