Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please load admin.js automatically in the backend #552

Open
BernhardBaumrock opened this issue Jan 5, 2025 · 1 comment
Open

Please load admin.js automatically in the backend #552

BernhardBaumrock opened this issue Jan 5, 2025 · 1 comment

Comments

@BernhardBaumrock
Copy link

ProcessWire already loads the following files in the backend

  • /site/templates/admin.php
  • /site/templates/admin.less

It would be great if it could also load

  • /site/templates/admin.js

automatically for all kinds of backend javascript modifications where it would be overkill to create an autoload module that loads those stylesheets.

@jmartsch
Copy link

jmartsch commented Jan 5, 2025

If this is considered to be implemented, please also use the type='module' attribute, so we can use ES6 module imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants