From 5ee644d5a714149625caf5275ebe466cdcfbf44a Mon Sep 17 00:00:00 2001 From: Phan An Date: Fri, 25 Dec 2020 23:52:00 +0100 Subject: [PATCH] fix: hot reloading issue --- webpack.mix.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.mix.js b/webpack.mix.js index 78cf2243..ea96e302 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -7,8 +7,8 @@ mix.webpackConfig({ resolve, plugins, output: { - chunkFilename: mix.config.production ? 'js/[name].[chunkhash].js' : 'js/[name].js', - publicPath: '/' + chunkFilename: mix.inProduction() ? 'js/[name].[chunkhash].js' : 'js/[name].js', + publicPath: 'http://127.0.0.1:8080/' }, devServer: { port: 8080, @@ -39,7 +39,7 @@ mix.ts('resources/assets/js/app.ts', 'public/js') .ts('resources/assets/js/remote/app.ts', 'public/js/remote') .sass('resources/assets/sass/remote.scss', 'public/css') -if (mix.config.production) { +if (mix.inProduction()) { mix.version() mix.disableNotifications() }