Add sourcemap generation to webpack.mix config

This commit is contained in:
Bubka 2022-03-24 15:13:17 +01:00
parent dbb17b3f12
commit 984e6d253c

23
webpack.mix.js vendored
View File

@ -11,21 +11,26 @@ const mix = require('laravel-mix');
|
*/
// mix.sourceMaps(false, "source-map")
mix
.js('resources/js/app.js', 'public/js')
.vue({ version: 2 })
.extract([
'vue',
'axios',
'vue-axios',
'vue-i18n',
'vue-router',
'v-clipboard',
'vuedraggable'
'vue',
'axios',
'vue-axios',
'vue-i18n',
'vue-router',
'v-clipboard',
'vuedraggable'
])
.sass('resources/sass/app.scss', 'public/css');
// if (!mix.inProduction()) {
// mix.webpackConfig({
// devtool: 'source-map',
// }).sourceMaps();
// }
if (mix.inProduction()) {
mix.version()
mix.version()
}