複数のエントリポイントから共通して利用されているベンダモジュールを外出し

This commit is contained in:
hina
2019-03-08 06:53:13 +09:00
parent e8438a78a1
commit 94c19235b6
4 changed files with 10 additions and 4 deletions

View File

@@ -104,5 +104,6 @@
@push('script')
<script id="global-count-labels" type="application/json">@json(array_keys($globalEjaculationCounts))</script>
<script id="global-count-data" type="application/json">@json(array_values($globalEjaculationCounts))</script>
<script src="{{ mix('js/vendor/chart.js') }}"></script>
<script src="{{ mix('js/home.js') }}"></script>
@endpush
@endpush

View File

@@ -217,7 +217,9 @@
</div>
</div>
@endguest
<script src="{{ mix('js/manifest.js') }}"></script>
<script src="{{ mix('js/vendor.js') }}"></script>
<script src="{{ mix('js/app.js') }}"></script>
@stack('script')
</body>
</html>
</html>

View File

@@ -30,6 +30,7 @@
@endsection
@push('script')
<script id="graph-data" type="application/javascript">@json($graphData)</script>
<script id="graph-data" type="application/json">@json($graphData)</script>
<script src="{{ mix('js/vendor/chart.js') }}"></script>
<script src="{{ mix('js/user/stats.js') }}"></script>
@endpush
@endpush