2021-04-02 15:33:31 -05:00
|
|
|
const mix = require('laravel-mix');
|
|
|
|
|
2020-07-02 22:59:36 -05:00
|
|
|
/*
|
2021-04-02 15:33:31 -05:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Mix Asset Management
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Mix provides a clean, fluent API for defining some Webpack build steps
|
|
|
|
| for your Laravel applications. By default, we are compiling the CSS
|
|
|
|
| file for the application as well as bundling up all the JS files.
|
|
|
|
|
|
2020-07-02 22:59:36 -05:00
|
|
|
*/
|
|
|
|
|
2020-06-14 08:51:20 -05:00
|
|
|
|
|
|
|
// production
|
2021-04-02 15:33:31 -05:00
|
|
|
// require('laravel-mix-bundle-analyzer');
|
2020-06-14 08:51:20 -05:00
|
|
|
mix.webpackConfig({
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'vue$': 'vue/dist/vue.runtime.common.js'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-02 15:33:31 -05:00
|
|
|
// dashboard and empty page
|
|
|
|
mix.js('src/pages/dashboard.js', 'public/js').vue();
|
|
|
|
// accounts.
|
|
|
|
mix.js('src/pages/accounts/index.js', 'public/js/accounts').vue();
|
|
|
|
mix.js('src/pages/accounts/show.js', 'public/js/accounts').vue();
|
2020-06-14 08:51:20 -05:00
|
|
|
|
|
|
|
|
2021-04-02 15:33:31 -05:00
|
|
|
// transactions.
|
|
|
|
mix.js('src/pages/transactions/create.js', 'public/js/transactions')
|
|
|
|
mix.js('src/pages/transactions/edit.js', 'public/js/transactions')
|
2020-07-09 23:48:39 -05:00
|
|
|
|
2021-04-02 15:33:31 -05:00
|
|
|
// static pages
|
|
|
|
mix.js('src/pages/empty.js', 'public/js').vue();
|
|
|
|
mix.js('src/pages/register.js', 'public/js')
|
2020-06-14 12:17:45 -05:00
|
|
|
|
2020-11-11 22:58:17 -06:00
|
|
|
|
2021-04-02 15:33:31 -05:00
|
|
|
mix.extract().sourceMaps();
|
2020-11-11 22:58:17 -06:00
|
|
|
|
2021-04-02 15:33:31 -05:00
|
|
|
mix.sass('src/app.scss', 'public/css', [
|
|
|
|
//
|
|
|
|
]);
|
2020-06-17 00:06:45 -05:00
|
|
|
|
2021-04-02 15:33:31 -05:00
|
|
|
// move to right dir
|
|
|
|
mix.copy('public/js','../public/v2/js')
|
2020-06-17 00:06:45 -05:00
|
|
|
.copy('fonts','../public/fonts')
|
2021-02-16 23:46:26 -06:00
|
|
|
.copy('images','../public/images')
|
2021-04-02 15:33:31 -05:00
|
|
|
.copy('public/css','../public/v2/css');
|
2020-06-14 08:51:20 -05:00
|
|
|
|