D3をchartのチャンクに含める

This commit is contained in:
hina 2020-06-06 06:37:39 +09:00
parent 9aa3bb43d3
commit 350360e2a9
No known key found for this signature in database
GPG Key ID: B666B2A137443F76

4
webpack.mix.js vendored
View File

@ -25,8 +25,8 @@ mix.js('resources/assets/js/app.js', 'public/js')
'jquery': ['$', 'jQuery', 'window.jQuery'] 'jquery': ['$', 'jQuery', 'window.jQuery']
}) })
.extract(['jquery', 'bootstrap']) .extract(['jquery', 'bootstrap'])
.extract(['chart.js', 'chartjs-color', 'color-name', 'moment'], 'public/js/vendor/chart') .extract(['chart.js', 'chartjs-color', 'color-name', 'moment', 'd3'], 'public/js/vendor/chart')
.version(); .version()
if (process.argv.includes('-a')) { if (process.argv.includes('-a')) {
mix.bundleAnalyzer({analyzerMode: 'static'}); mix.bundleAnalyzer({analyzerMode: 'static'});