Skip to content

Commit

Permalink
added version support for static files
Browse files Browse the repository at this point in the history
  • Loading branch information
emir committed Nov 20, 2017
1 parent 0095301 commit 74f1d07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<title>{{ config('opencfp.event_name', 'dotCFP') }}: Call for Papers</title>

<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
</head>
<body>
<div id="app">
Expand Down Expand Up @@ -137,8 +137,8 @@ class="fa fa-list"></i> My Talks</a></li>
</footer>

<!-- Scripts -->
<script src="{{ asset('js/app.js') }}"></script>
<script src="{{ asset('js/bootbox.js') }}"></script>
<script src="{{ mix('js/app.js') }}"></script>
<script src="{{ mix('js/bootbox.js') }}"></script>

</body>
</html>
4 changes: 4 additions & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ let mix = require('laravel-mix');
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.copy('node_modules/bootbox/bootbox.js', 'public/js/bootbox.js');

if (mix.inProduction()) {
mix.version();
}

0 comments on commit 74f1d07

Please sign in to comment.