0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-30 16:45:51 +01:00
gitea/public
silverwind 1fbfccb4fc Use standard lessc and minify CSS using Node.js (#2337)
* Use standard lessc and minify CSS using Node.js

This changes the previous nonstandard `lessc` to the official one and
enables CSS minification via the clean-css module.

To build CSS, Node.js is required along with a `npm install` to get the
tools installed locally in node_modules so there is no dependency on
binaries in PATH. Benefits include:

- Allows one to have a standard lessc in PATH.
- Can now use command line switches on lessc.
- Minified CSS brings faster page load times and also has the benefit
  of discouraging contributors from editing CSS directly.

To build CSS, Node.js is required along with a `npm install` to get the
tools installed locally based on the information in `package.json`.

The 'make stylesheet' task was modified to run without condition. This
makes it easier to work on the make task itself without having to delete
files.

Also fixes: https://github.com/go-gitea/gitea/issues/2198

* install node, npm and modules on drone

* .PHONY

* use 'minify' to minify CSS
2017-09-21 11:35:11 +08:00
..
css Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
img Implementation of discord webhook (#2402) 2017-08-28 13:06:45 +08:00
js improve protected branch to add whitelist support (#2451) 2017-09-14 16:16:22 +08:00
less Implementation of all repositories of a user from user->settings (#1740) 2017-09-14 14:46:14 +03:00
vendor bug fixed 2017-09-04 14:22:07 +08:00
swagger.v1.json Feature: Timetracking (#2211) 2017-09-12 09:48:13 +03:00