diff --git a/webpack.mix.js b/webpack.mix.js index 35526b1ec..6d9410190 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -13,10 +13,10 @@ const path = require('path'); */ mix.webpackConfig({ - // output: { - // publicPath: "/", - // chunkFilename: 'js/[name].[chunkhash].js' - // }, + output: { + publicPath: "/", + chunkFilename: 'js/[name].[chunkhash].js' + }, resolve: { alias: { 'components': 'assets/js/components', @@ -37,4 +37,5 @@ mix.webpackConfig({ mix.js('resources/assets/js/app.js', 'public/js') .sass('resources/assets/sass/app.scss', 'public/css') .js('resources/assets/js/home.js', 'public/js') - .sass('resources/assets/sass/home.scss', 'public/css'); + .sass('resources/assets/sass/home.scss', 'public/css') + .version();