Skip to content

Commit 04f1463

Browse files
committed
Fix assets cache issue
1 parent 0de0ae2 commit 04f1463

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

dist/js/card.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"/js/card.js": "/js/card.js"
2+
"/js/card.js": "/js/card.js?id=3f77fbcf19a5dc9cd000"
33
}

webpack.mix.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
let mix = require('laravel-mix')
22

3-
mix.setPublicPath('dist')
3+
mix
4+
.setPublicPath('dist')
45
.js('resources/js/card.js', 'js')
6+
7+
if (mix.inProduction()) {
8+
mix.version();
9+
}

0 commit comments

Comments
 (0)