diff --git a/webpack.config.js b/webpack.config.js index aceb85c4..785078da 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -14,6 +14,7 @@ Encore .enableSassLoader() .enableVueLoader() .autoProvidejQuery() + .enableVersioning() .enableSourceMaps(!Encore.isProduction()) .cleanupOutputBeforeBuild() .enablePostCssLoader() @@ -23,8 +24,8 @@ Encore { from: './node_modules/leaflet/dist/images', to: 'images/[name].[ext]' }, ]) .configureFilenames({ - js: 'js/[name].js', - css: 'css/[name].css', + js: 'js/[name].[contenthash].js', + css: 'css/[name].[contenthash].css', }) .configureImageRule({ filename: 'images/[name][ext]',