2017-08-25 00:30:57 +00:00
|
|
|
const mix = require('laravel-mix')
|
2022-04-25 16:12:59 +00:00
|
|
|
const config = require('./webpack.config.js')
|
2017-02-14 06:53:02 +00:00
|
|
|
|
2022-04-25 16:12:59 +00:00
|
|
|
mix.webpackConfig(Object.assign(config, {
|
2018-09-04 09:32:39 +00:00
|
|
|
output: {
|
2020-12-25 22:52:00 +00:00
|
|
|
chunkFilename: mix.inProduction() ? 'js/[name].[chunkhash].js' : 'js/[name].js',
|
2020-12-28 21:38:13 +00:00
|
|
|
publicPath: mix.inProduction() ? '/' : 'http://127.0.0.1:8080/'
|
2020-04-18 10:15:43 +00:00
|
|
|
},
|
2022-04-25 16:12:59 +00:00
|
|
|
}))
|
2018-09-04 09:32:39 +00:00
|
|
|
|
2020-09-12 15:01:48 +00:00
|
|
|
mix.setResourceRoot('./')
|
2017-10-02 21:01:05 +00:00
|
|
|
|
2022-04-15 14:24:30 +00:00
|
|
|
mix.copy('resources/assets/img', 'public/img')
|
|
|
|
.copy('node_modules/font-awesome/fonts', 'public/fonts')
|
|
|
|
|
2022-04-25 16:12:59 +00:00
|
|
|
const vueOptions = { version: 3 }
|
|
|
|
|
|
|
|
mix.ts('resources/assets/js/app.ts', 'public/js').vue(vueOptions)
|
2022-04-15 17:00:08 +00:00
|
|
|
.sass('resources/assets/sass/app.scss', 'public/css')
|
2022-04-25 16:12:59 +00:00
|
|
|
.ts('resources/assets/js/remote/app.ts', 'public/js/remote').vue(vueOptions)
|
2022-04-25 13:07:38 +00:00
|
|
|
.sass('resources/assets/sass/remote.scss', 'public/css')
|
2017-02-14 06:53:02 +00:00
|
|
|
|
2020-12-25 22:52:00 +00:00
|
|
|
if (mix.inProduction()) {
|
2017-08-25 00:30:57 +00:00
|
|
|
mix.version()
|
|
|
|
mix.disableNotifications()
|
2017-02-14 06:53:02 +00:00
|
|
|
}
|