WordPress scripts

Support multiple output entries

"build": "wp-scripts build /src/js/index.js /src/js/landing.js --output-path=js"

This results in two output scripts script.js and animate.js. You can easyl import other scripts and styles. Like:

import './style.css';
import './main.js';
import './swiper.js';

Change defaults

It looks for index.js in the src/js directory.

"build": "wp-scripts build --webpack-src-dir=src/js --output-path=js