x/pgksite: dev mode doesn't actually serve non-minified JS #42540
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite/frontend
Issues related to pkgsite HTML/CSS/JavaScript and frontend development
pkgsite
Milestone
The usage of
./cmd/frontend
says:However, from some experimentation this doesn't appear to be happening. If I modify a .js file and re-run the frontend, the modification is not applied until I compile the .js file into a minified version with
./devtools/compile_js.sh
.Perhaps I'm holding it wrong?
A quick look at the code makes me believe this indeed isn't implemented. While in devMode the server calls
parsePageTemplates
anew each time a template is requested, the template files directly refer to minified JS, e.g.:The text was updated successfully, but these errors were encountered: