Merge pull request #390 from shikorism/moment-locale
JSバンドルからMomentを除去する
This commit is contained in:
commit
57c6eff442
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@
|
||||
/public/hot
|
||||
/public/storage
|
||||
/public/mix-manifest.json
|
||||
/public/report.html
|
||||
/storage/*.key
|
||||
/vendor
|
||||
/.idea
|
||||
|
2
resources/assets/js/home.js
vendored
2
resources/assets/js/home.js
vendored
@ -35,4 +35,4 @@ new Chart(graph.getContext('2d'), {
|
||||
}]
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
11
webpack.mix.js
vendored
11
webpack.mix.js
vendored
@ -25,9 +25,14 @@ mix.js('resources/assets/js/app.js', 'public/js')
|
||||
'jquery': ['$', 'jQuery', 'window.jQuery']
|
||||
})
|
||||
.extract(['jquery', 'bootstrap'])
|
||||
.extract(['chart.js', 'chartjs-color', 'color-name', 'moment'], 'public/js/vendor/chart')
|
||||
.version();
|
||||
.extract(['chart.js', 'chartjs-color', 'color-name', 'moment', 'cal-heatmap', 'd3'], 'public/js/vendor/chart')
|
||||
.version()
|
||||
.webpackConfig(webpack => ({
|
||||
externals: {
|
||||
moment: 'moment'
|
||||
}
|
||||
}));
|
||||
|
||||
if (process.argv.includes('-a')) {
|
||||
mix.bundleAnalyzer({analyzerMode: 'static'});
|
||||
mix.bundleAnalyzer({ analyzerMode: 'static' });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user