Skip to content

Commit

Permalink
Merge pull request #4781 from laurencei/laurencei-patch-1
Browse files Browse the repository at this point in the history
[5.7] Update mix.md
  • Loading branch information
taylorotwell authored Nov 25, 2018
2 parents 2af1b98 + 914fe57 commit 940ba8c
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:

<link rel="stylesheet" href="{{ mix('/css/app.css') }}">
<script src="{{ mix('/assets/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 940ba8c

Please sign in to comment.