We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requirement: Statamic ≥ v3.3.18 Laravel ≥ v9.19.0
composer update
npm install --save-dev vite laravel-vite-plugin
vite.config.js
import { defineConfig } from "vite"; import laravel from "laravel-vite-plugin"; export default defineConfig({ plugins: [ laravel({ input: ["resources/js/site.js", "resources/css/tailwind.css"], refresh: ["resources/views/**"], }), ], envPrefix: "MIX_", });
"scripts": { "dev": "vite", "build": "vite build" },
should look like this ^
postcss.config.js
plugins: { tailwindcss: {}, autoprefixer: {}, }, };
resources/views/layout.antlers.html
<link rel="stylesheet" href="{{ mix src='css/tailwind.css' }}"> <script src="{{ mix src='/js/site.js' }}" defer></script>
with
{{ vite src="resources/js/site.js|resources/css/tailwind.css" }}
Execute these command rm webpack.mix.js npm remove laravel-mix
rm webpack.mix.js
npm remove laravel-mix
And finally run npm run dev for development site.
npm run dev
The text was updated successfully, but these errors were encountered:
Driton007
No branches or pull requests
Requirement:
Statamic ≥ v3.3.18
Laravel ≥ v9.19.0
composer update
to update your laravel and Statamic to the latest version.npm install --save-dev vite laravel-vite-plugin
vite.config.js
on root directory file and paste this codeshould look like this ^
postcss.config.js
and paste this code
resources/views/layout.antlers.html
Replace this tag
with
Execute these command
rm webpack.mix.js
npm remove laravel-mix
And finally run
npm run dev
for development site.The text was updated successfully, but these errors were encountered: