Closed JustinyAhin closed 2 years ago
In your vite config, you pass dist/scripts
as the second argument. You need to pass the same directory when you enqueue the script, eg:
Vite\enqueue_asset(
CUSTOM_PLUGIN_DIR . 'dist/scripts',
...
);
I'm trying to use the package.
I followed the steps in the
README.md
file and created anvite.config.js
file that looks like:I also created a
src/inc/Assets.php
in my plugin that looks like:and import it into my main plugin file
But then my script is not showing in the frontend.
Am I missing something?
Thanks.