Anyone? Still haven't found a solution for this :(
Jul 19, 2020
4
Level 2
mix.version() does not make the files
Hi,
I have this code in webpack.mix.js
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.version();
mix.styles([
'node_modules/mdbootstrap/css/mdb.min.css',
'resources/css/mdbootstrap.css'
], 'public/css/all.css').version();
I then run "npm run dev"
This should make versioning files, but it does not. Nothing in the pubic folder. Why is that?
Level 8
Hey @mb have you checked your mix-manifest.json file? That should tell you the version numbers. Also, according to this https://laravel-mix.com/docs/5.0/versioning#laravel-users you need to use mix() function in your Laravel Blade files.
The files get appended with a hash at the end, so it doesn't create new files for you it just adds the hash for cache busting.
1 like
Please or to participate in this conversation.