2,444 questions
Tooling
0
votes
5
replies
114
views
Best Low-overhead JavaScript Compressor?
I am looking for a JavaScript compressor1 (not minifier) which has least overhead for it's own decompressor functions. Did you have some recommendations to me?
Currently, I only seen RegPack and ...
0
votes
0
answers
61
views
Terser webpack error while building next.js project
I get these errors when I try to build my nextjs project
static/chunks/36443.1f4a0592caf86eec.js from Terser
invalid unicode code point at line 1 column 454144
I tried removing node_modules and ...
0
votes
3
answers
130
views
Minifiying javascript file with webpack breaks vue functionality (specifically with method calls on class instance)
I am working on an ASP.NET project that uses Vue.js and jQuery. I have a JavaScript file (fields.js) that defines several classes (e.g., Users, Fields) and initializes a Vue instance. When I use the ...
0
votes
0
answers
33
views
Why is JS bundle minification disabled by default in react-native-gradle-plugin?
I'm trying to understand the reasoning behind the default configuration in the new react-native-gradle-plugin. Specifically, I noticed that JavaScript bundle minification is disabled during release ...
0
votes
1
answer
796
views
Astro - Automatically minify the JS files in the public folder during build?
I'm using Astro to build a Single Page App and optimize its assets (HTML, CSS, SVG etc). This apps contains a significant amount of JavaScript code (split into several files) that must be run "as-...
0
votes
0
answers
34
views
Missing sprite in production
The sprite is missing the path and other properties in the dist folder after running npm run build. Before the command and minification, sprite works fine in local host and deployment (I use parcel v2)...
2
votes
2
answers
914
views
Execution failed for task ':app:minifyReleaseWithR8' - Stripe missing classes?
Here’s an improved version of your text with some clarity adjustments:
Hello,
I have a Flutter app that was working perfectly until I upgraded my OS to Windows 11 and updated Android Studio to the ...
0
votes
1
answer
186
views
Azure CI Pipeline Not Preparing Minified Files using BundlerMinifier into Artifact
Utilizing Azure CI Pipelines to help build and prepare my artifact for deployment, the minified files seem to be excluded from the prepared artifact.
Looking at the build logs I can see the files get ...
2
votes
0
answers
126
views
Is there a way to minify/combine css/js sphinx-extension-assets from the _static directory to have fewer and smaller requests?
When building (readthe)docs with a sphinx-theme, most of the used extensions bring their own css and js files which are being loaded separately (e.g. copybutton.css/js, tabs.css/js, togglebutton.css/...
0
votes
1
answer
31
views
While downloading abernix:[email protected]...: error: certificate has expired
while running meteor remove standard-minifier-js && meteor add abernix:standard-minifier-js or meteor add abernix:standard-minifier-js getting below error. Any help would be highly appreciable....
0
votes
1
answer
261
views
What would cause "class verified rejected" in Android developing with Java, when I turn on minifyEnable?
I have a class using try-catch-finally, and it works well in debug package. But when I turn on MinifyEnable, the app crashed with class verified rejected:
java.lang.VerifyError: Verifier rejected ...
0
votes
1
answer
122
views
Beautiful Soup returns script language instead of HTML
I made a python program to scrape data from a couple shopping sites, which was working fine on both, until recently.
URL1 - https://www.auchan.pt/pt/alimentacao/alimentacao-bebe-e-crianca/papa-e-...
1
vote
0
answers
618
views
flutter web: how to obfuscate/minify the js code (in addition to the dart code)
I have a flutter web app which has some code in dart and some other code in javascript. When I build the release variant of the web app, the dart code seems to be obfuscated/minified. But the ...
0
votes
1
answer
65
views
Do webpack 5 have a compression plugin which compress css file without validating css rules?
I have some programming logic in css file. I used the css file as a template. Is there any plugin for webpack which has option to just compress the css file without validating css rules?
0
votes
1
answer
435
views
R8 -printusage not worked
I use R8 in my project to minify classes and it worked well, now I want to see what classes was removed exactly and from Android offical it said add : -printusage proguard/unused.txt in my proguard ...
0
votes
0
answers
389
views
W3 Total Cache JavaScript minify WordPress website issue
I need your assistance to fix the following.
I updated the W3 Total Cache plugin on my WordPress website, https://codersfort.com/. Could someone please assist me in fixing this problem? After ...
1
vote
0
answers
408
views
Gson.toJson() ignores @SerializedName for release build with minify option enabled
Model to serialize:
data class Settings(
@SerializedName("custom_field_name_1")
val field1: Int,
@SerializedName("custom_field_name_2")
val field2: Int,
......
0
votes
0
answers
386
views
Is it possible to minify a project with Vue3, typescript in composition api and vitejs?
As the title states : Is it possible to minify a project with Vue3, typescript in composition api and vitejs ?
I have searched a lot and yet I cant find anything that really suits my needs and is ...
0
votes
1
answer
843
views
How to minify my files before deploying them to the server
I want to enhance the performance of my front-end website and I found that one of the best practices is minifying my files. After searching I decided to use terser package. I've never done this before ...
0
votes
1
answer
389
views
How to minify node.js typescript backend project?
My webpack.config.js:
const path = require('path');
var fs = require('fs')
var nodeModules = {};
fs.readdirSync('node_modules').filter(function (x) {return ['.bin'].indexOf(x) === -1;}).forEach(...
2
votes
2
answers
4k
views
Apache Nifi 2.x - org.eclipse.jetty.http.BadMessageException: 400: Invalid SNI
i was trying to upgrade NiFi to 2 from 1.24. while starting Nifi, service started and port 8443 is listening.But i am getting error 400 on web page
From the web:
HTTP ERROR 400 Invalid SNI
URI: /...
-1
votes
1
answer
42
views
After Publish in Vue js app , i can open the component (.vue) from browser and see all files and app structure , how can i hide those files
for more information :
The dist files are chunked, also the js,
I want a way to minify the files and no one can open the files (.vue)
Note: I meant files not the element of HTML, I mean vue component ...
0
votes
1
answer
149
views
Is it possible to prohibit certain symbols when distorting properties? / mangle
I get properties starting with _ and $ (_, $, _a, $a, ...), which leads to an error due to these characters being reserved by Vue.
Is there a way to ban certain characters? I didn't find anything ...
1
vote
1
answer
170
views
How can I get around the 64K reference limit in debug builds?
I develop an app that was designed from inception with minSdkVersion 23. I recently realized that with minimal work (basically just gating off the few method calls that actually require SDK > 19), ...
0
votes
1
answer
639
views
As a library developer: how to avoid the user's Proguard
I'm a library developer.
I'm experiencing issues with the users of my library regarding Proguard. Seems like their Proguard is messing the models of the library.
I have defined in the proguard-rules....
0
votes
1
answer
255
views
How to concatenate JS files into bundle-main.js, bundle-top.js, bundle-player.js?
I have developed and maintain a multiplayer word game, since maybe 8-10 years:
The backend for the game is a Maven project producing a servlet, written in Java.
And the Javascript files are just ...
8
votes
2
answers
8k
views
How to remove @license comments from source during npm build (will add manually)?
I am developing a Vite-React webapp to be used by me only, and heres my simple build command in package.json: "build": "vite build --emptyOutDir --base=./".
It uses the Google ...
1
vote
0
answers
947
views
A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable after tried to run my app on android mobile in release
that's the error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle....
3
votes
1
answer
3k
views
How to minify static assets for a Blazor app
Background
I've been playing with Blazor recently.
I created a sample application using a VS template.
Then I wanted to add some styling to it. So I found an example template here, copied the static ...
1
vote
0
answers
246
views
Minifying JS: Option to compile imports into the minified version
I'm trying to do a JS compiler in Node for websites, but I'm hitting a snag.
My compiles keep imports set in the JS. So when its read by the browser it says Uncaught SyntaxError: Cannot use import ...
1
vote
0
answers
1k
views
Error minifying Android app with R8 after upgrading Android Gradle Plugin to 8.1.0
After updating the Android Gradle Plugin in my Android app project to 8.1.0 I'm encountering an error during the release build when the minifyReleaseWithR8 task is executed.
The error message I'm ...
0
votes
0
answers
227
views
Do minified class names change and if so how often?
I'm trying to create a custom user-defined CSS stylesheet to modify my Reddit experience on Reddit. In doing so I've found that many class names have been hashed to arbitrary strings to prevent ...
-3
votes
3
answers
2k
views
Error: Minified React error #482; visit https://reactjs.org/docs/error-decoder.html?invariant=482
what's up?
So, I'm facing a difficult problem to debug and solve by myself using the web literature, for some factors that I will mention.
As you may have noticed from the title, the browser console ...
-3
votes
1
answer
210
views
How do I minify Delphi code using Delphi?
The title might be a bit confusing, but basically, I want a function that can minify Delphi code.
Something like this:
function MinifyDelphiCode(delphi: String): String;
begin
// Returns the minified ...
0
votes
1
answer
59
views
Data format conversion not happening with publishjms processor to IBM MQ in NIFI
Trying to push IBM1047 encoded messages from hdfs to IBM MQ using publishjms processor in NIFI. EBSIDIC conversions not happening properly at NIFI side which results to junk data displaying at MQ. In ...
0
votes
1
answer
517
views
How do I minify JSON using Delphi?
Using the following code, I am able to format (beautify) JSON using the built-in Delphi functions from the System.JSON unit:
function FormatJson(json: String; IndentationCount: Cardinal): String;
...
6
votes
0
answers
2k
views
How to use Proguard in Kotlin Multiplatform (KMM) shared module
This is my :shared->build.gradle.kts file
plugins {
kotlin("multiplatform")
id("com.android.library")
id("maven-publish")
}
group = "com.example"...
0
votes
0
answers
238
views
Minify variable/function names in PowerShell source
Is there a way/library to minify source code so that it looks like i.e. jquery.min.js? or at least obfuscate it random way. I mean names of vars and functions minified to a,b,c, etc. All minify ...
1
vote
1
answer
1k
views
Bundle and minify multiple JS and CSS files with webpack - ERROR Module not found
Trying to use Webpack to bundle and minify all the JS files to a bundle.min.js file, and all the CSS files into a bundle.min.css file.
Folder structure:
root
|- assets
|- src
|-- js
|--- *.js
|-- css
|...
0
votes
1
answer
230
views
Using debugger statement in Vue 2 production code
I want to be able to detect if user has devtools open inside my Vue 2 webapp.
I use @vue/cli 5.0.8 with default config for creating and building the app.
I found this piece of code that should do the ...
1
vote
0
answers
130
views
minify javascript with just alphanumeric charset
I'm writing a frontend component with React and build it with vite.js.
This frontend component can sit on multiple pages with different libraries. As it's very common other libraries use '$' (Like ...
0
votes
1
answer
459
views
terser removes the function
I am using terser to compress my code. But it turns out that it removes a function that is called only in html code (I understand that I set module: true)
I also set dead_code: false to keep ...
0
votes
1
answer
95
views
How to unminify / format html without changing the formatting?
I have a minified HTML file (specificially: an exported HTML from Notion.so) and want to make it editable by unminifying it.
Is that possible?
Could I automate this process?
The issue is that when I ...
-2
votes
2
answers
83
views
window.onload does not work when minified using Uglify
When not miniifying the scripts window.onload does work as expected.
But when I do minified my scripts using Uglify-js Folder it does not.
If I write the following and minify it :
window.onload = ...
1
vote
0
answers
161
views
How can i generate minified CSS files in same directory with PostCSS
I would like to use PostCSS to generate minified CSS files in a same directory with "min" keyword. I have various CSS files and each file should be minify and add a ".min" along ...
12
votes
3
answers
9k
views
Error when minifying Android app with R8 after upgrading Android Gradle Plugin to 8.0.2
I recently upgraded the Android Gradle Plugin in my Android app project from version 7.4.2 to 8.0.2. However, I'm now encountering an error during the release build when the minifyReleaseWithR8 task ...
3
votes
0
answers
629
views
How to exclude specific node module from minification in next.js app
In my next.js app I am using a package called 'js-interpreter', residing in node_modules/js-interpreter, which is a pre-minified package. So, when I create my build with next build it further ...
4
votes
1
answer
1k
views
Room database is working fine in Debug build but not working in Release build
Hi StackOverflow community, recently I have updated my Android project to Gradle 7.5 and Kotlin to 1.7.20. But since then I couldn't get the Room DB working in the release build. On Debug build it ...
2
votes
2
answers
391
views
Android app installs from Android Studio, but not externally as .apk. Throws "java.lang.UnsatisfiedLinkError"
Unable to launch Android application when installed externally as .apk. Application installs fine on devices when installed using Android Studio. Logcat shows the error as,
FATAL EXCEPTION: main
...
0
votes
0
answers
94
views
SVG breaking Svelte app after minification
I'm working on an app for a directory and the pagination for some reason is breaking during minification (vite and svelte configured). When minification is turned off, everything works fine. I've ...