Closed gmirmand closed 1 year ago
Did you require Composer's autoloader in your functions.php
? Try adding the following at the top of the file:
require_once __DIR__ . '/vendor/autoload.php';
The path of the require should reflect that of your vendor
location. Usually, this is the same as in the example.
Nop I didn't... it's better with :)
require_once ABSPATH . '/vendor/autoload.php';
I have another issue but but I'm going to create another ticket to avoid mixing up the topics.
Thnaks ! :)
Hello ! I am absolutely no expert in the use of wordpress, composer and Vite, so my problem may be particularly simple to solve:
I would like to have a basic compilation of a single javascript file to support ES6 and a single scss file into css in a wordpress child theme. Vite (and more particularly this integration) seems to be appropriate.
I followed the instructions =
composer require idleberg/wordpress-vite-assets
<project>/wp-content/themes/<theme-child>/functions.php
but on my site I get :
So I've several questions :
<project>/wp-content/themes/<theme-child>/manifest.json
? I think I'm suppose to generate it to telling him to compile my js & scss but I don't get how.Thank you very much in advance for your help and patience!