Just a basic example how to integrating CodeIgniter 3 + Vue.js 3 + Vite with supported Hot Module Replacement (HMR).
If you loves CodeIgniter 3 & Vue.js, you must try this one to make your life easier!
Some changes to make this works!
- application/helpers/vite_helper.php
- application/controllers/Vue.php
- application/config/routes.php
- application/views/index.vue.php
- frontend/vite.config.js
- Setting CodeIgniter base_url at application/config/config.php
- Open Terminal/CMD and enter to
frontend
directory - Install vue project dependencies:
npm install
- Run for development:
npm run dev
- Run for production:
npm run build
- Open the browser and go to the project address, e.g.
http://localhost/codeigniter3-vuejs3-vite-boilerplate/
- Enjoy!
Powered by ngekoding.github.io