mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
init crater
This commit is contained in:
29
webpack.mix.js
Normal file
29
webpack.mix.js
Normal file
@ -0,0 +1,29 @@
|
||||
const mix = require('laravel-mix')
|
||||
|
||||
mix.webpackConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(
|
||||
__dirname,
|
||||
'resources/assets/js'
|
||||
)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Admin
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
mix.js('resources/assets/js/app.js', 'public/assets/js/')
|
||||
.sass('resources/assets/sass/laraspace.scss', 'public/assets/css/')
|
||||
|
||||
if (!mix.inProduction()) {
|
||||
mix.webpackConfig({
|
||||
devtool: 'source-map'
|
||||
}).sourceMaps()
|
||||
} else {
|
||||
mix.version()
|
||||
}
|
||||
Reference in New Issue
Block a user