https://github.com/peter-szrnka/cssjs-minifier
Java based CSS/JS file merger & compressor.
https://github.com/peter-szrnka/cssjs-minifier
closure-compiler css java javascript merge minify-css minify-javascript yui-compressor
Last synced: about 1 month ago
JSON representation
Java based CSS/JS file merger & compressor.
- Host: GitHub
- URL: https://github.com/peter-szrnka/cssjs-minifier
- Owner: peter-szrnka
- License: apache-2.0
- Created: 2017-11-23T07:33:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T11:47:50.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T19:39:19.593Z (3 months ago)
- Topics: closure-compiler, css, java, javascript, merge, minify-css, minify-javascript, yui-compressor
- Language: Java
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cssjs-minifier
A small, Java based CSS/JS file merger & compressor. ( First I created it for myself. :) ) It's very useful for local Javascript (Angular JS, Progressive Web Apps, etc.) web development.
## Current status
| Build | Code coverage | Code quality |
| ----- | ------------- | ------------ |
| [](https://github.com/peter-szrnka/cssjs-minifier/actions/workflows/codeql.yml) |  | [](https://sonarcloud.io/summary/new_code?id=peter-szrnka_cssjs-minifier) [](https://sonarcloud.io/summary/new_code?id=peter-szrnka_cssjs-minifier) [](https://sonarcloud.io/summary/new_code?id=peter-szrnka_cssjs-minifier) |## Used technologies
- Java 11
- Maven
- YUI compressor
- Google Closure Compiler## Features
- configurable
- portable (no installation required)## Install & configuration
- Download the JAR file
- Create a batch file to run it, or you can download it from here.
- Download the sample config.properties file
- Open the config.properties file and customize the parameters.## Usage
- Start the batch file or run it from command line with
```
java -jar cssjs-minifier.jar
```## Settings
The config.properties should contains all the necessary config settings.
| Key | Description | Default value |
| ------------- | ------------- | ------------- |
| jscompressor | Possible values: yui,closurecompiler | yui |
| jsfolder | The directory where input JS files are located. | current dir: "." |
| jsout | The name of JS output file. | ./out.min.js |
| jscompiletype | Possible values(case sensitive): WHITESPACE, SIMPLE, ADVANCED | SIMPLE |
| csscompressor | yui | yui |
| cssfolder | The directory where input CSS files are located. | current dir: "." |
| cssout | The name of CSS output file. | ./out.min.css |