Skip to content

Commit

Permalink
fixed path
Browse files Browse the repository at this point in the history
  • Loading branch information
kkame committed Nov 25, 2018
1 parent a70e75a commit 4f01118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ The `version` method will automatically append a unique hash to the filenames of

After generating the versioned file, you won't know the exact file name. So, you should use Laravel's global `mix` function within your [views](/docs/{{version}}/views) to load the appropriately hashed asset. The `mix` function will automatically determine the current name of the hashed file:

<script src="{{ mix('/assets/js/app.js') }}"></script>
<script src="{{ mix('/js/app.js') }}"></script>

Because versioned files are usually unnecessary in development, you may instruct the versioning process to only run during `npm run production`:

Expand Down

0 comments on commit 4f01118

Please sign in to comment.