Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C cssembed
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Nicholas C. Zakas
  • cssembed
  • Merge requests
  • !28

Added Ant task

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/tivac/ant-task into master Apr 29, 2011
  • Overview 1
  • Commits 15
  • Pipelines 0
  • Changes 4

Created by: tivac

This is based off my max-image-size branch though, so if you don't merge that you'll need to hack out references to that in the options.

(Please don't do that, I find max-image-size super useful)

Running this as a native ant task using helped speed up our site builds by 10x (along w/ using YUI Compressor as an ant task). Definitely something worth having IMO.

<taskdef name="cssembed" classname="net.nczonline.web.cssembed.CSSEmbedTask" classpath="${cssembed}"/>
<cssembed root="${app.public.dir}" skipMissing="true" maxImageSize="@{max-image}">
    <fileset dir="${app.public.dir}" includes="@{filter}" />
</cssembed>
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/tivac/ant-task