mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 00:03:09 +01:00
Add sourcemap generation to webpack.mix config
This commit is contained in:
parent
dbb17b3f12
commit
984e6d253c
23
webpack.mix.js
vendored
23
webpack.mix.js
vendored
@ -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()
|
||||
}
|
Loading…
Reference in New Issue
Block a user