Tiny boilerplate to work with Vue 3 and Laravel Mix (outside Laravel).
⚠️ This is just an experimental work and should not, under any circumstances, be used in production. Use instead well tested and faster tools like Vite. Or, if you need the auto import functionality, you can use Nuxt instead.
The easiest way to install Vulmix is by running:
npx create-vulmix-app your-app-name
...and follow the instructions on the terminal.
Run the project locally by cd
ing into the project directory and then running the following command:
# With NPM
npm run dev
# Or with Yarn
yarn dev
This should open your project on the port 3000
with fast refresh.
If you don't want fast refresh for some reason, you can serve your project with this command:
# With NPM
npm run serve
# Or with Yarn
yarn serve
This should serve your project onto the port 8000
without fast refresh.
⚠️ You need tonpm run build
in a separate terminal to recompile your files without serving them.
To compile a optimized code, you need to run the following command:
# With NPM
npm run prod
# Or with Yarn
yarn prod
This will minify and optimize your project code.