mercredi 7 juin 2017

Laravel Mix version() is forgetting one file

I'm using Laravel 5.4 and Mix to build my CSS/JS files.

Here is my full webpack.mix.js file :

mix
    .webpackConfig({output: {filename: '[name].js', chunkFilename: 'js/[name].[chunkhash].app.js', publicPath: '/'}})
    .js(['resources/assets/js/app.js'], 'public/js')
    .extract(['vue', 'jquery'])
    .sass('resources/assets/sass/app.scss', 'public/css')
    .version();

For some reason, the JS chunks and CSS files are versioned correctly, but my app.js isn't. Obvisouly, this causes various cache-related problems on my webapp.

I tried : - adding filenames as parameters for version() - deleting the manifests

But no luck. Any hint would be greatly appreciated. Thank you !



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire