I just found Maven WebJars but I would like to know how to minify those files after finishing my project. I would like to use something like a maven plugin, but I haven't found anyone. It would be helpful if someone tell me one. Thanks
How to minify and process files inside webjars?
1.1k Views Asked by Luis Vargas At
2
There are 2 best solutions below
0
eugen-fried
On
There could be another way to do this: create an antrun execution on phase prepare-package that simply <exec> (but it better be <javaexec> , so you can depend on it and not on the environment) your favorite minifier. That may be not the neatest way to do this, but it surely will get the thing done, and with proper generation to ${project.build.outputDirectory} (target/classes) should not interrupt normal maven workflow.
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in MAVEN
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- JavaFX build generating a blank gui with primary view and secondary view buttons
- Maven (Java) does not build dependencies into a compiled file
- java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator in Spring-boot jsp application
- I am trying to use h2 in-memory db from my spring boot application, my spring boot version is 3.1.10, but its not connecting to h2 properly
- BeanCreationException when deploying Spring Boot app
- How to run Parallel tests by groups using Maven and TestNG?
- Get control flow information with JaCoCo
- Failed to instantiate [com.docusign.esign.client.ApiClient]
- Gradle - Groovy vs Gradle - Kotlin vs Maven for Java Spring Boot web application project on IntelliJ
- Intelij ultimate and spring boot giving me errors
- Using Eclipse Maven project, import new version of a class from a jar file created from another Maven project
- Messing up with conflict between spring jcl and commons-logging.jar
- Run java program
- How to add a Maven project to an Ubuntu image in Docker
Related Questions in WEBJARS
- When using Bootstrap webjars, is it possible to override properties globally without having to recompile the sass?
- How to customize Bootstrap Maven WebJar theme in Spring Boot with Thymeleaf and sass-maven-plugin?
- Bootstrap multiselect with Thymeleaf
- Loading bootstrap using webjars in spring boot application with multiple modules
- Webjars - Add configuration to Swagger-UI webjar
- maven fails to find files in main package: ZIP file can't be opened as a file system because an entry has a '.' or '..' element in its name
- Trying to add the Lit JS framework to an existing Spring Boot project via Webjar dependency in gradle. Results in:Failed to resolve module specifier
- Spring Security forgets authentication or requires multiple login attempts
- Cannot use MultipartFile in ModelAttribute with Thymeleaf
- Angular App released in a webjar: issue with baseHref
- Bootstrap 4 webjar css not working with Spring Boot + Thymeleaf
- Javascript / webjars/ace using wrong url
- Swagger UI not displying due to My SpringBoot Applcation each endpoint expects 2 query parameters
- JavaFX WebView: how can I load webjars?
- Spring Boot: How to use Bootstrap 4 WebJar SASS files
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is a project called Web Resource Optimizer for Java (wro4j) which supports many JS plugins (JSHint, CSSLint et al). Check this page for usage details. Google Closure compressor and YUI Compressor are supported. You can try minification using these.