mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
integrated frontend
This commit is contained in:
+48
-13
@@ -1,15 +1,50 @@
|
||||
let mix = require('laravel-mix');
|
||||
const path = require('path')
|
||||
const mix = require('laravel-mix')
|
||||
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mix Asset Management
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Mix provides a clean, fluent API for defining some Webpack build steps
|
||||
| for your Laravel application. By default, we are compiling the Sass
|
||||
| file for the application as well as bundling up all the JS files.
|
||||
|
|
||||
*/
|
||||
mix.config.vue.esModule = true
|
||||
|
||||
mix.js('resources/assets/js/app.js', 'public/js')
|
||||
.sass('resources/assets/sass/app.scss', 'public/css');
|
||||
mix
|
||||
.js('resources/assets/js/app.js', 'public/js')
|
||||
.sass('resources/assets/sass/app.scss', 'public/css')
|
||||
|
||||
.sourceMaps()
|
||||
.disableNotifications()
|
||||
|
||||
if (mix.inProduction()) {
|
||||
mix.version()
|
||||
|
||||
mix.extract([
|
||||
'vue',
|
||||
'vform',
|
||||
'axios',
|
||||
'vuex',
|
||||
'jquery',
|
||||
'popper.js',
|
||||
'vue-i18n',
|
||||
'vue-meta',
|
||||
'js-cookie',
|
||||
'bootstrap',
|
||||
'vue-router',
|
||||
'sweetalert2',
|
||||
'vuex-router-sync',
|
||||
'@fortawesome/fontawesome',
|
||||
'@fortawesome/vue-fontawesome'
|
||||
])
|
||||
}
|
||||
|
||||
mix.webpackConfig({
|
||||
plugins: [
|
||||
// new BundleAnalyzerPlugin()
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['.js', '.json', '.vue'],
|
||||
alias: {
|
||||
'~': path.join(__dirname, './resources/assets/js')
|
||||
}
|
||||
},
|
||||
output: {
|
||||
chunkFilename: 'js/[name].[chunkhash].js',
|
||||
publicPath: mix.config.hmr ? '//localhost:8080' : '/'
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user