Questions tagged [uglifyjs]

Uglifyjs is a versatile toolkit for parsing, compressing, and beautifying JavaScript code. While it was developed on NodeJS, it is designed to be compatible with any JavaScript platform that supports the CommonJS module system.

Reduce the size of JavaScript code in the browser with minification/obfuscation

I am looking for a way to minify/uglify a JavaScript snippet directly in the browser without using tools like webpack or grunt. I have tried using uglify js and other solutions, but they all seem to require the fs module which is not available on the cli ...

babel-minify or terser over uglify-js

Exploring ES6+ (modern JavaScript) is a new adventure for me, and I've discovered that in order to use it in browsers, tools like babel-minify or terser are necessary. It's interesting to note that Babili was initially thought to be a separate to ...

What is the method to determine the version of UglifyCSS that has been installed?

I recently installed UglifyCSS globally using the following command: npm install -g uglifycss Is there a way to check the current version of the installed UglifyCSS? P.S. To check the version of UglifyJS, I use the command: uglifyjs -V However, when ...

When using a service, AngularJS can experience issues when the code is minified

Hello, I'm still learning AngularJS and trying my best to follow Todd Motto's Opinionated AngularJS Styleguide for Teams. I've encountered an issue while using Grunt to uglify my code - whenever I enable mangling, it throws an error: Error: [$injector:unp ...

Comprehending the power of the mean stack while incorporating uglify.js and stylus technologies

As I delve into the world of the MEAN stack, I am aware that my question may seem basic to experts. Apologies in advance! Although I believe integrating Uglify.js and stylus would enhance the capabilities of this stack, I have been unsuccessful in doing s ...

I'm encountering an issue with my NuxtJS build when using UglifyJS and node-rsa. Does anyone know how to fix

I have encountered an error while using the node-rsa library in my NuxtJS project. During the production build process with nuxt build, which includes JS and CSS minification by default, I receive the following message right before the build breaks: ERROR ...

Effortless bug tracking in Chrome developer tools

When I'm debugging, I want the code to be displayed in Chrome browser (or another browser like Edge) exactly as it was written. Even when using pretty print, the code still appears unreadable. For example, a block of code written in my IDE: {provideData() ...

Encountered issue during installation of uglify.js on Windows 7 operating system

I'm currently working on updating Bootstrap to the latest version on my Windows 7 system. I am following instructions provided at . NodeJS and NPM have been successfully installed on my machine. However, when attempting to execute the following comman ...

Bypass ESLint rule when using Uglify in the Vue build script like a pro!

Every time I try to execute npm run build, I encounter a consistent punc error in various lines. The issue seems to be related to the method in which I am defining functions within my components: <script> export default { data() {} } </scrip ...

Issue encountered with UglifyJs - Unexpected token: title (Subject)

My attempt to deploy my initial Angular application is not going smoothly. The build process fails and the error message I'm encountering states: ERROR in vendor.809dd4effe018f6b3d20.bundle.js from UglifyJs Unexpected token: name (Subject) [vendor.809 ...