mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: properly-hased codesplit chunks
This commit is contained in:
parent
76cad5e85a
commit
c9667c4662
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ mix.webpackConfig({
|
||||||
resolve,
|
resolve,
|
||||||
plugins,
|
plugins,
|
||||||
output: {
|
output: {
|
||||||
chunkFilename: mix.config.inProduction ? 'js/[name].[chunkhash].js' : 'js/[name].js',
|
chunkFilename: mix.config.production ? 'js/[name].[chunkhash].js' : 'js/[name].js',
|
||||||
publicPath: '/public/'
|
publicPath: '/public/'
|
||||||
},
|
},
|
||||||
devServer: {
|
devServer: {
|
||||||
|
@ -43,7 +43,7 @@ mix.ts('resources/assets/js/app.ts', 'public/js')
|
||||||
.ts('resources/assets/js/remote/app.ts', 'public/js/remote')
|
.ts('resources/assets/js/remote/app.ts', 'public/js/remote')
|
||||||
.sass('resources/assets/sass/remote.scss', 'public/css')
|
.sass('resources/assets/sass/remote.scss', 'public/css')
|
||||||
|
|
||||||
if (mix.config.inProduction) {
|
if (mix.config.production) {
|
||||||
mix.version()
|
mix.version()
|
||||||
mix.disableNotifications()
|
mix.disableNotifications()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue