Java Script and Vite
Table of contents
1. Overview Table of Contents
This framework comes with some built in JavaScrip files to support basic tasks as described below:
- Front end password match validation
- Phone number format validation
- TinyMCE support.
These scripts can be imported into any view that needs these features. They can be found at resources/js.
2. app.js Table of Contents
Additional JavaScript features can also be included in this framework. The entry point for additional JavaScript can be found at resources/js/app.js
3. Vite Asset Bundling Table of Contents
This framework includes the ability to perform Vite asset bundling. Run the following command to bundle your assets:
npm run build
Vite is also used to provide live updates of your views after saving a view file. Run the following command to use this feature:
npm run dev
After running the command the npm based Vite server is started just like any Laravel or React.js based project.