I'm using NUglify, actually, but I don't know if that matters here. I've recently moved my codebase from ES5 to ES6 (ES2015) and I'm getting errors o ...
I'm using NUglify, actually, but I don't know if that matters here. I've recently moved my codebase from ES5 to ES6 (ES2015) and I'm getting errors o ...
Am I right saying that the following rule works for any/almost-any JS minifier: The property names of all objects of your program are treated as a sin ...
Context Webapp build with webpack (framework used is vuejs, from a quick look that's not relevant here) When webapp is in dev mode, no error thrown. ...
I have an express app that, among other things, delivers some html code based on a single handlebars template. It would be great for the use-case to d ...
I have a few AWS Lambda functions with APIGateway. I'm using the serverless approach, packing and deploying the app using SAM CLI. It outputs the sepa ...
ERROR in static/js/10.1253c0b3f1b4afab1655.js from UglifyJs TypeError: "name.definition is not a function" I got the following error when buildi ...
name: Cannot uglify bootstrap.min.js file about: Error when I try to uglify the bootstrap.min.js file Uglify version ("uglify-js": "3.16.2",) Boo ...
My js file has a lot of comments and spaces which increases its size and slows down the website. So I am looking for a way to minify all that when I s ...
So today I learnt that minimising JavaScript inside of js.liquid file is a nightmare. I'm building with gulp & typescript: This is a call from m ...
Is there a way to not mangle only one function name? A comment in the code would be easiest, but I guess this could be done by specifying a custom "na ...
I am using Pug for a web page that I am building. At the end of a module I have a script. tag (the regular script tag cannot be used because it isn't ...
I'm entering a project where npm produces an issue for a long time, and none have the knowledge of when and why it appeared. I would like to have some ...
I'm currently working on an open source project and want to add an extra line that has comment including link of the project on it so if somebody goes ...
I am using usemin and I have this error with the bootstrap file, if I make the reference from the page if it works no fun: It works well: error: un ...
I am sending a script through UglifyJS which contains a few instances of optional changing syntax. In the browser, this syntax works flawlessly. Howev ...
I have a react application deployed without source maps. I'm using react-scripts instead of having ejected and configure the build from scratch. My qu ...
Can Webpack be configured so that its tree-shaking is smart enough to remove imports depended on by only other tree-shaken exports? Example: entry.j ...
I need to publish minified version of an NPM package written in Typescript. To compile the app I use tsc -p . command and it builds the package in lib ...
We've been using UglifyJS and webpack v4 for our react code, but then just updated to webpack v5. It appears that UglifyJS does not work with webpack ...
I'm writing a Node.js project. How can I protect it for being copied or read? Are there any tools to minify/uglify/compress my nodejs code? Should I ...