Merge pull request #457 from shikorism/fix/source-map-in-dev
SourceMapが欲しい
This commit is contained in:
commit
081dd8da28
12
webpack.mix.js
vendored
12
webpack.mix.js
vendored
@ -1,5 +1,6 @@
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const mix = require('laravel-mix');
|
||||
require('laravel-mix-bundle-analyzer')
|
||||
require('laravel-mix-bundle-analyzer');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -22,15 +23,16 @@ mix.ts('resources/assets/js/app.ts', 'public/js')
|
||||
.ts('resources/assets/js/checkin.ts', 'public/js')
|
||||
.sass('resources/assets/sass/app.scss', 'public/css')
|
||||
.autoload({
|
||||
'jquery': ['$', 'jQuery', 'window.jQuery']
|
||||
jquery: ['$', 'jQuery', 'window.jQuery'],
|
||||
})
|
||||
.extract(['jquery', 'bootstrap'])
|
||||
.extract(['chart.js', 'chartjs-color', 'color-name', 'moment', 'cal-heatmap', 'd3'], 'public/js/vendor/chart')
|
||||
.version()
|
||||
.webpackConfig(webpack => ({
|
||||
.sourceMaps(false)
|
||||
.webpackConfig((_webpack) => ({
|
||||
externals: {
|
||||
moment: 'moment'
|
||||
}
|
||||
moment: 'moment',
|
||||
},
|
||||
}));
|
||||
|
||||
if (process.argv.includes('-a')) {
|
||||
|
Loading…
Reference in New Issue
Block a user