src/assets/js directory and add your code to it. If you're going to use jquery, make sure to add import $ from 'jquery'; at the top of the file.config.yml add src/assets/js/admin.js to PATHS.entries.library/enqueue-scripts.php.gulp / npm start