uglifyjs Questions

3

I currently have this factor-bundle command which I use to bundle my files, and pull everything common into a common file: browserify index.js bar-charts.js list-filter.js dashboard.js -p [ fact...
Krasnodar asked 14/8, 2015 at 21:26

10

Solved

Hello I'm using uglifyJs to minify my javascript files, it's working well with one file at a time, what I'm loking for is to minify all the javascript files present in a folder called JS into a fol...
Usual asked 9/6, 2013 at 9:58

3

Solved

Given that uglification involves some minification in the process, does it still make sense to do both minify and uglify? If yes, should one minify or uglify first? Is it enough to do uglify only? ...
Lynching asked 14/11, 2015 at 12:3

2

Solved

I used to have problems with UglifyJS for Webpack and ES6 modules: ERROR in static/js/vendor.6ccd9e38979a78765c7a.js from UglifyJs Unexpected token: name (features) [./node_modules/pica/lib/ma...
Glowworm asked 24/10, 2017 at 2:51

2

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 v5. Is there an alternative? We need something ...
Opec asked 15/12, 2020 at 1:9

3

Solved

This answer worked like a charm previously: https://mcmap.net/q/121528/-remove-console-logs-with-webpack-amp-uglify However, since Webpack v4 it doesn't work anymore. Since then it throws: Err...
Lacasse asked 4/3, 2018 at 22:24

3

Currently, when developing Wordpress themes I use a simple batch file to uglify my js. An example batch file makebundle.bat call uglifyjs^ src/file1.js^ src/file2.js^ -cmo bundle.min.js I th...
Schnapp asked 21/7, 2015 at 17:10

4

Solved

I get this warning when using Grunt and grunt-ng-annotate. There is no reference in the warning to where the error is in the file, which makes debugging it hard. Any ideas?
Auriscope asked 31/8, 2017 at 11:39

10

I am trying to remove console.logs with Webpack's Uglify plugin but it seems that Uglify plugin that comes bundled with Webpack doesn't have that option, its not mentioned in the documentation. I ...
Ellora asked 8/12, 2016 at 13:6

2

I'm experiencing a TypeError and am unsure how to resolve it. I look forward to any help you can provide. The following is the terminal output from yarn run build: BUILD_DIR /Users/blakelucey/Deskt...
Inoperable asked 6/10, 2021 at 15:30

3

Solved

I have an app which is working great in development enviroment but it is not working in production, which is caused by uglify (I think so) I have a data which user builds and I am saving that eith...
Knut asked 10/5, 2018 at 7:13

4

Solved

I have created a react app with a custom next server server.js: const { createServer } = require('http'); const next = require('next'); const app = next({ dev: process.env.NODE_ENV !== 'producti...
Interdependent asked 21/6, 2019 at 19:2

6

Solved

So I installed npm using npm install uglify-js I run a command which is: cat file1.js file2.js .. fileN.js | uglifyjs -o files.min.js and I get this error: WARN: ERROR: Unexpected token eof «u...
Petr asked 29/11, 2012 at 20:21

3

Solved

UglifyJS uses commas to chain function, object and variable declarations. This is fine for productions and when the file is being minified however it makes it extremely hard to walk through the jav...
Levitan asked 28/8, 2014 at 4:35

4

I have minified my Javascript and CSS files using uglifyJS and the file size on disk has decreased considerably. But on checking the total time for resources loaded in network tab, using Chrome Dev...
Anissaanita asked 13/2, 2015 at 6:29

4

I am reverse engineering one magical script. I have an uglified source code and source map generated by uglifyjs. Does anybody know any straightforward way how to achieve at least partly readable ...

5

Solved

I use lots of console.log() statements while developing Apps (and I mean LOTS). How exactly can I remove them without "ejecting" from a Create React App What I considered but not sure how exactly ...
Quintinquintina asked 15/12, 2017 at 20:16

1

Solved

In this project i am using gulp-uglify version 3.0.1 and i want to preserve comments containing license texts in the output. On the projects page it is stated that Most of the minify options from...
Gladiolus asked 19/12, 2018 at 14:34

4

Solved

I have the following error when trying to do a production build using webpack 2.2.1 : > cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --color -p --progr...
Woodprint asked 6/3, 2017 at 19:11

2

Solved

I have had this problem for the last 2 days. So I decided to completely disable uglifyjs-webpack-plugin from webpack build process. I was not able to find anything on webpack 4.
Varityper asked 10/7, 2018 at 11:0

4

Solved

What I want is to bundle my JavaScript vendor files in a specific order via CommonsChunkPlugin from Webpack. I'm using the CommonsChunkPlugin for Webpack. The usage from the official documentation...
Gusgusba asked 23/3, 2017 at 22:42

4

I've had this error for 2 weeks now while trying to build an ember app in production. Building it in dev environment works fine. I also realized that disabling minifyJs in ember-cli-build prevents ...
Skyscape asked 27/10, 2016 at 5:9

6

I've completed a project and now it's time to build it. I'm using a boilerplate project and still don't fully understand all the npm/webpack stuff going on under the hood. When running "npm start",...
Crosslegged asked 21/12, 2016 at 3:17

2

Solved

I have a gulp rjs task that concatenates and uglifies all my custom .JS files (any non vendor libraries). What i am trying to do, is exclude some files/directories from this task (controllers and ...
Undertrump asked 30/4, 2014 at 9:20

2

Solved

I'm Generating the release APK for Android and want to test it without minifying the code. How can I generate a release version for Android or iOS without minify the code? Thanks.
Counterweight asked 22/2, 2017 at 19:59

© 2022 - 2024 — McMap. All rights reserved.