-
This is a basic setup that uses standard PHP with no special templating or framework.
-
It integrates a Webpack build process with plugins that install Tailwind CSS.
-
A demo Tailwind navigation component has been added to the page as well.
npm run dev
This will also watch the build for any changes in the JavaScript files or Tailwind configuration.
npm run prod
This will create a dist
folder that contains minified css, JavaScript, and images
PHP -S localhost:9090
The port can be any open port that you aren't currently using.
Use two seperate console tabs for both the PHP server and the Webpack build scripts, and you're ready to develop!