generateForProduction: false

This commit is contained in:
shibafu 2020-08-06 01:27:47 +09:00
parent 8f1a4d3e88
commit 87c97d27a8

5
webpack.mix.js vendored
View File

@ -28,6 +28,7 @@ mix.ts('resources/assets/js/app.ts', 'public/js')
.extract(['jquery', 'bootstrap']) .extract(['jquery', 'bootstrap'])
.extract(['chart.js', 'chartjs-color', 'color-name', 'moment', 'cal-heatmap', 'd3'], 'public/js/vendor/chart') .extract(['chart.js', 'chartjs-color', 'color-name', 'moment', 'cal-heatmap', 'd3'], 'public/js/vendor/chart')
.version() .version()
.sourceMaps(false)
.webpackConfig((_webpack) => ({ .webpackConfig((_webpack) => ({
externals: { externals: {
moment: 'moment', moment: 'moment',
@ -37,7 +38,3 @@ mix.ts('resources/assets/js/app.ts', 'public/js')
if (process.argv.includes('-a')) { if (process.argv.includes('-a')) {
mix.bundleAnalyzer({ analyzerMode: 'static' }); mix.bundleAnalyzer({ analyzerMode: 'static' });
} }
if (!mix.inProduction()) {
mix.sourceMaps();
}