mirror of
https://github.com/duplicati/duplicati.git
synced 2025-11-27 19:10:29 +08:00
- Run npx postcss against generated CSS files - Disable sourcemap Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
16 lines
875 B
JSON
16 lines
875 B
JSON
{
|
|
"devDependencies": {
|
|
"autoprefixer": "^10.4.20",
|
|
"less": "^4.2.0",
|
|
"less-plugin-clean-css": "^1.6.0",
|
|
"postcss": "^8.4.47",
|
|
"postcss-cli": "^11.0.0",
|
|
"stylelint": "^16.9.0",
|
|
"stylelint-config-standard-less": "^3.0.1"
|
|
},
|
|
"scripts": {
|
|
"build:style": "npm run lint:style-fix; npx lessc Duplicati/Server/webroot/ngax/less/dark.less Duplicati/Server/webroot/ngax/styles/dark.css --clean-css -m=always && npx lessc Duplicati/Server/webroot/ngax/less/default.less Duplicati/Server/webroot/ngax/styles/default.css --clean-css -m=always && npx postcss Duplicati/Server/webroot/ngax/styles/dark.css Duplicati/Server/webroot/ngax/styles/default.css --no-map --use autoprefixer --replace",
|
|
"lint:style": "npx stylelint \"Duplicati/Server/**/less/*.less\"",
|
|
"lint:style-fix": "npx stylelint \"Duplicati/Server/**/less/*.less\" --fix"
|
|
}
|
|
}
|