WPBP / WordPress-Plugin-Boilerplate-Powered

Wordpress Plugin Boilerplate but Powered with examples and a generator!
https://wpbp.github.io/
GNU General Public License v3.0
782 stars 116 forks source link

[info] frontend and backend Enqueue.php script directions #228

Closed kauaicreative closed 1 year ago

kauaicreative commented 1 year ago

Fascinating project. Do we have some instructions on how the backend enqueue system works? /assets/build/... is not being enqueued automatically. Furthermore the plugin's test settings page's tabs are not styles or functioning I assume because the assets are not being loaded. I would be grateful for some direction on how to use the frontend and backend Enqueue.php scripts.

Mte90 commented 1 year ago

Those are the 2 files that do that, if the file are not enqueue probably because the build folder is not generated? You need to run npm build otherwise the files are not there.

Did you used the https://github.com/WPBP/generator as this boilerplate alone does not work.

kauaicreative commented 1 year ago

Got it! Yes, I had built the assets but now see that I also needed to include the "inpsyde/assets" in the generator. It's working perfectly now - thanks!

Mte90 commented 1 year ago

You are right as it is optional and if you remove it the code is removed in the boilerplate.

I think that I should improve somehow the generator or the documentation but I don't have idea for that (yet).

In the meantime I am closing it.

kauaicreative commented 1 year ago

It's an impressive undertaking, getting all of this working smoothly together. Bravo!

Mte90 commented 1 year ago

It is a long time project :-)