Java Script and Vite

Table of contents

  1. Overview
  2. app.js
  3. Vite Asset Bundling

1. Overview Table of Contents

This framework comes with some built in JavaScrip files to support basic tasks as described below:

  1. Front end password match validation
  2. Phone number format validation
  3. 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.