From 984e6d253cc032f5175d980236bf31fbd40fc7c5 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Thu, 24 Mar 2022 15:13:17 +0100 Subject: [PATCH] Add sourcemap generation to webpack.mix config --- webpack.mix.js | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/webpack.mix.js b/webpack.mix.js index 0af775ee..6533cebd 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -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() } \ No newline at end of file