| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apache/htdocs/app/ |
Upload File : |
const mix = require('laravel-mix');
const ESLintPlugin = require('eslint-webpack-plugin');
mix.webpackConfig({
plugins: [
// eslint
new ESLintPlugin({
extensions: ['js','vue'],
}),
],
resolve: {
extensions : ['.js','.vue'],
alias : {
'@' : __dirname + '/resources',
'@components' : __dirname + '/resources/js/components',
'@views' : __dirname + '/resources/js/views',
}
},
});
/*
|--------------------------------------------------------------------------
| 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.
|
*/
mix.js('resources/js/app.js', 'public/js').vue()
.sass('resources/sass/app.scss', 'public/css');
if (process.argv.includes('--hot')) {
mix.disableSuccessNotifications();
}else{
mix.version();
}
if (!mix.inProduction()) {
require('laravel-mix-bundle-analyzer');
mix.bundleAnalyzer({
openAnalyzer: false,
});
}