CSS : utilisation de Mix pour l'intégrité et le cache de bulma.css

This commit is contained in:
Olivier DOSSMANN 2021-05-01 19:11:25 +02:00
parent fb6762bf9f
commit 606aad3f53
4 changed files with 12 additions and 5 deletions

4
.gitignore vendored
View File

@ -11,3 +11,7 @@ Homestead.json
Homestead.yaml Homestead.yaml
npm-debug.log npm-debug.log
yarn-error.log yarn-error.log
package-lock.json
public/css
public/js
public/mix-manifest.json

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title')</title> <title>@yield('title')</title>
<link rel="stylesheet" href="/bulma.min.css"> <link rel="stylesheet" href="{{ mix("css/bulma.css") }}">
<body> <body>

11
webpack.mix.js vendored
View File

@ -11,7 +11,10 @@ const mix = require('laravel-mix');
| |
*/ */
mix.js('resources/js/app.js', 'public/js') // mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css', [ // .postCss('resources/css/app.css', 'public/css', [
// // //
]); // ]);
mix.copy('resources/css/bulma.min.css', 'public/css/bulma.css')
.version();