This website requires JavaScript.
Explore
Help
Sign in
TakeV
/
forgejo
Archived
Watch
1
Star
0
Fork
You've already forked forgejo
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
This repository has been archived on
2024-01-04
. You can view files and clone it, but cannot push or open issues or pull requests.
dff26e25ca
forgejo
/
package.json
7 lines
124 B
JSON
Raw
Normal View
History
Unescape
Escape
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 03:35:11 +00:00
{
Compress css with nodejs (#2580)
2017-09-24 19:47:10 +00:00
"license"
:
"MIT"
,
"devDependencies"
:
{
"less"
:
"^2.7.2"
,
"less-plugin-clean-css"
:
"^1.5.1"
}
}
Reference in a new issue
Copy permalink