-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.mix.js
33 lines (26 loc) · 915 Bytes
/
webpack.mix.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const mix = require('laravel-mix');
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin');
// used Compression Webpack Plugin
// const CompressionPlugin = require('compression-webpack-plugin');
// used Bundle Analyzer
//const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
mix.webpackConfig({
resolve: {
extensions: ['.js', '.vue'],
alias: {
'@': __dirname + '/resources/js'
}
},
plugins: [
new VuetifyLoaderPlugin(),
// new CompressionPlugin({
// algorithm: 'gzip',
// compressionOptions: { level: 9 },
// filename: '[path].gz[query]',
// threshold: 1400,
// minRatio: 1
// })
// new BundleAnalyzerPlugin({analyzerHost: "192.168.10.10"}),
]
});
mix.js('resources/js/main.js', 'public/js').vue().disableNotifications();