generateForProduction: false
This commit is contained in:
parent
8f1a4d3e88
commit
87c97d27a8
5
webpack.mix.js
vendored
5
webpack.mix.js
vendored
@ -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();
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user