Skip to content

use LESS instead of pure CSS #1

Description

@mpoehler

LESS is a CSS preprocessor. This means, the CSS will be generated from the LESS files. That has some impacts for the CSS development cycle. While there are some help from the Chrome Dev Tools using LESS with Source-Map files and auto-reload of changed CSS files, there is a bitter pill to eat: Every change in a LESS file must be compiled into the CSS file and served thru the devserver to see the changes in the browser.

A possible solution for the development cycle is starting a grunt watch task, which automatically compiles the LESS files to CSS files whenever a LESS file is changed. Together with the Chrome DevTools support for source maps (which are also generated by the LESS compiler) and auto-reload of CSS files the development cycle should be pretty.

In the production build, the generation of source maps can be skipped, or they will be skipped when copy the grunt-target files to the exploded war directory.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions