humpty-css

Parent POM for humpty projects

License

License

GroupId

GroupId

co.mewf.humpty
ArtifactId

ArtifactId

humpty-css
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

humpty-css
Parent POM for humpty projects

Download humpty-css

How to add to project

<!-- https://jarcasting.com/artifacts/co.mewf.humpty/humpty-css/ -->
<dependency>
    <groupId>co.mewf.humpty</groupId>
    <artifactId>humpty-css</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/co.mewf.humpty/humpty-css/
implementation 'co.mewf.humpty:humpty-css:0.1.0'
// https://jarcasting.com/artifacts/co.mewf.humpty/humpty-css/
implementation ("co.mewf.humpty:humpty-css:0.1.0")
'co.mewf.humpty:humpty-css:jar:0.1.0'
<dependency org="co.mewf.humpty" name="humpty-css" rev="0.1.0">
  <artifact name="humpty-css" type="jar" />
</dependency>
@Grapes(
@Grab(group='co.mewf.humpty', module='humpty-css', version='0.1.0')
)
libraryDependencies += "co.mewf.humpty" % "humpty-css" % "0.1.0"
[co.mewf.humpty/humpty-css "0.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.helger : ph-css jar 3.8.1
co.mewf.humpty : humpty jar 0.1.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.slf4j : slf4j-nop jar 1.7.10

Project Modules

There are no modules declared in this project.

humpty-css

Provides minification and URL rewriting for CSS files in the humpty pipeline.

Installation

In Maven:

<dependency>
  <groupId>co.mewf.humpty</groupId>
  <artifactId>humpty-css</artifactId>
  <version>1.0.0-SNAPSHOT</version>
</dependency>

URL rewriting

Rewrites url imports to paths that can be served by Servlet 3's resource mechanism. For example, in Bootstrap:

src: url('../fonts/glyphicons-halflings-regular.eot');

is rewritten to

src:url('/webjars/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.eot');

The latter can be served directly by a Servlet 3.0 container.

Compression

Uses an inline version of YUI Compressor to avoid dragging in YUI Compressor's JavaScript-related dependencies.

Configuration

Name

css

Options

Option Default Description
minify only in production mode Set to true or false to force minification to be always on or off, respectively
rewrite true Set to false to disable URL rewriting

Example

[options.css]
  minify = true

Versions

Version
0.1.0