複数のエントリポイントから共通して利用されているベンダモジュールを外出し
This commit is contained in:
parent
e8438a78a1
commit
94c19235b6
@ -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
|
@ -217,6 +217,8 @@
|
||||
</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>
|
||||
|
@ -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
|
2
webpack.mix.js
vendored
2
webpack.mix.js
vendored
@ -21,6 +21,8 @@ mix.js('resources/assets/js/app.js', 'public/js')
|
||||
.autoload({
|
||||
'jquery': ['$', 'jQuery', 'window.jQuery']
|
||||
})
|
||||
.extract(['jquery', 'bootstrap'])
|
||||
.extract(['chart.js', 'moment'], 'public/js/vendor/chart')
|
||||
|
||||
if (process.argv.includes('-a')) {
|
||||
mix.bundleAnalyzer({analyzerMode: 'static'});
|
||||
|
Loading…
Reference in New Issue
Block a user