-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
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
duplicate stylesheet link #242
Comments
Does this also happen on v0.8.0? |
i don,t know my website is in production i realized it today and even i cannot test it with v8 |
Please try again with v0.8 and report back, thanks. |
@riazahmadshigri one of these is a "preload" tag the other is a "stylesheet" tag. This is intentional. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload |
Yes I added custom attributes on stylesheet for better speed But the link with preload is duplicate it should not be there Because I added custom attributes following Laravel docs ..... Before adding those custom attributes it was rendering two similar stylesheets links with rel preload But now it is supposed to only render the link with custom attr which is correct one As a workaround I will for now remove @Vite(assets/etc) And hard code the stylesheet link |
Vite Plugin Version
0.7.2
Laravel Version
10
Node Version
1.1
NPM Version
8.1.4
Operating System
win
OS Version
10
Web browser and version
google chrome
Running in Sail?
No
Description
//vite.config.js
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig( {
plugins: [
laravel( {
input: [
'resources/css/app.css',
'resources/css/frontend.scss',
'resources/js/app.js',
],
refresh: true,
} ),
],
} );
//header.blade.php
@Vite('resources/css/frontend.scss')
///////its producing dublicate css
Steps To Reproduce
unknown
The text was updated successfully, but these errors were encountered: