1. Compile SASS & JS files using Laravel Mix
cd html
npm install
npx run watch
- To watch all files changes
npx run dev
- To build all files in development mode
npx run prod
- To build all files in production mode
Files explained
/src - This folder contains all the source JS and CSS files
/dist - This folder contains all the compiled JS and CSS files
/node_modules - Do not upload this folder to server
What's included
- Bootstrap
- jQuery
- Slick Carousel
- Hamburger CSS
- PostCSS Autoprefixer
- SASS Support
- Browsersync - Make sure to change the proxy url in webpack.mix.js file
2. Install WordPress using WP-CLI
mkdir myproject
cd myproject
wp core download
wp config create --dbname="myproject" --dbuser="admin" --dbpass="admin" --dbhost="localhost"
wp core install --url="myproject.local" --title="My Project" --admin_user="admin" --admin_password="admin" --admin_email="your@email.com"