My apologies upfront for being so verbose. I just want to make sure I explain what I think what should happen is correct.
I just did the test again, because I don’t remember the files I did earlier. The first image is the JS file edited. I edited conf.js, the console shows that conf.js is dirty, and it writes out erpnext.min.js. As I would expect. But speaking of what I expect, let me confirm what I am thinking is the way it really works.
For example, when I edited conf.js, it wrote erpnext.min.js becuase in the build.json file:
Build.json:
],
"js/erpnext.min.js": [
"public/js/conf.js",
"public/js/utils.js",
"public/js/queries.js",
"public/js/sms_manager.js"
conf.js is part of the value of the key “js/erpnext.min.js” (not sure if the wording is correct on that)". So when edited, it writes out erpnext.min.js because “watch” sees that conf.js is dirty, so it needs to rewrite erpnext.min.js.
erpnext.min.js gets added to the app, because of the line in hooks.py
hooks.py:
app_include_js = "assets/js/erpnext.min.js"
Is this correct?
Screen shot below of the successful rewrite of erpnext.min.js.
Then I moved on to the css file. I edited website.css in the frappe app. In the build.json file:
{
"css/frappe-web.css": [
"public/css/font-awesome.css",
"public/css/octicons/octicons.css",
"public/css/website.css"
I would expect when "website.css becomes dirty, it would rewrite "frappe-web.css, and be added in the app becuase in hooks.py, it has line:
web_include_css = [
"assets/css/frappe-web.css"
]
But as you can see in the screenshot below, when I edit website.css by adding
.foo {
color:red;
}
But the console shows nothing and file “frappe-web.css” is not updated. See below.