text: let mix = require('laravel-mix');
  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
  
  /*
   |--------------------------------------------------------------------------
   | 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.js('resources/assets/js/home.js', 'public/js')
      .setPublicPath('public')
      .extract(['vue','vuetify','vuetify/dist/vuetify.min.css','vue-resource','vue-router'],'js/vendor')
      .webpackConfig({output: {publicPath:'',chunkFilename: mix.inProduction() ? 'js/chunks/[name].chunk.[chunkhash].js' : 'js/chunks/[name].chunk.js'}})
      .disableNotifications();
  mix.js('resources/assets/js/app.js', 'public/js')
      .setPublicPath('public')
      .extract(['vuex','vue-scrollto','laravel-echo','pusher-js','vue-timeago'],'js/vendorApp')
      .webpackConfig({output: {publicPath:'',chunkFilename: mix.inProduction() ? 'js/chunks/[name].chunk.[chunkhash].js' : 'js/chunks/[name].chunk.js'}})
      .disableNotifications();
  if(1===2){
      mix.webpackConfig({
      plugins: [
          new BundleAnalyzerPlugin()
      ]
  });	
  }
  
  if (mix.inProduction()) {
      mix.version();
  }