Bench build overwrites changes in desk.min.css

Hello; Can someone direct me on this.

I need to hide the breadcrumbs in pos view (v6); if I finish the edits to dek.min.css in frappe-bench/sites/assets/css and save and run
bench build
the changes are overwritten, I guess from the cache. But it works fine when I just run supervisorctl reload.

I don’t know why it is like this. Although the result is fine, but if I make changes that need bench build to become active; then previous style changes in desk.min.css will be lost.
How do I clear this cache or disable it so that changes are instant and reliable.

Thanks.

The desk.min.css file (and other minified files) aren’t written manually. They’re assembled during the build process from individual css files (you can check out the build.json to see which those are), which are in turn compiled from their .less files.

In order to make style changes, you’ll need to modify the .less files.

2 Likes

Thanks for insightful response. I combed through looking for where these were coming from.

Thanks @pratu16x7. I will have a look

Kent@Live Mail. its official!

[http://discuss.erpnext.com/user_avatar/discuss.erpnext.com/pratu16x7/45/7074_1.png] pratu16x7http://discuss.erpnext.com/users/pratu16x7
May 8

The desk.min.css file (and other minified files) aren’t written manually. They’re assembled during the build process from individual css files (you can check out the build.json to see which those are), which are in turn compiled from their .less files.

github.com https://github.com/frappe/frappe/blob/develop/frappe/public/build.json
frappe/frappe/blob/develop/frappe/public/build.jsonhttps://github.com/frappe/frappe/blob/develop/frappe/public/build.json

{
“css/frappe-web.css”: [
“public/css/font-awesome.css”,
“public/css/octicons/octicons.css”,
“public/css/website.css”,
“public/css/avatar.css”
],
“js/frappe-web.min.js”: [
“public/js/frappe/class.js”,
“public/js/lib/bootstrap.min.js”,
“public/js/lib/md5.min.js”,
“public/js/frappe/provide.js”,
“public/js/frappe/format.js”,
“public/js/frappe/misc/number_format.js”,
“public/js/frappe/misc/common.js”,
“public/js/frappe/translate.js”,
“public/js/frappe/misc/pretty_date.js”,
“public/js/lib/moment/moment.min.js”,
“public/js/lib/highlight.pack.js”,
“public/js/lib/microtemplate.js”,

This file has been truncated. show originalhttps://github.com/frappe/frappe/blob/develop/frappe/public/build.json

In order to make style changes, you’ll need to modify the .less files.

Visit Topichttp://discuss.erpnext.com/t/bench-build-overwrites-changes-in-desk-min-css/23514/2 or reply to this email to respond.

To unsubscribe from these emails, click herehttp://discuss.erpnext.com/email/unsubscribe/fc9c60c4970642806d95bf46cfff6618722141f0646457f200f84df410242dcd.

1 Like