text: const mix = require("laravel-mix");
  
  /*
   |--------------------------------------------------------------------------
   | 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.
   |
   */
  
  const folder = {
      src: "resources/views/",
      dist: "public/"
  };
  
  /* Mix to Greeva Template 2.0 */
  mix
      .sass(folder.src + "admin/assets/scss/bootstrap.scss", folder.dist + "backend/assets/css/bootstrap.min.css")
      .sass(folder.src + "admin/assets/scss/icons.scss", folder.dist + "backend/assets/css/icons.min.css")
      .sass(folder.src + "admin/assets/scss/app.scss", folder.dist + "backend/assets/css/app.min.css")
  
      .scripts(folder.src + "admin/assets/js/app.js", folder.dist + "backend/assets/js/app.min.js")
      .scripts(folder.src + "admin/assets/js/core.js", folder.dist + "backend/assets/js/core.min.js")
  
      .scripts([
          folder.src + "admin/assets/js/vendor/jquery.js",
          folder.src + "admin/assets/js/vendor/bootstrap.bundle.js",
          folder.src + "admin/assets/js/vendor/jquery.slimscroll.js",
          folder.src + "admin/assets/js/vendor/metisMenu.js",
          folder.src + "admin/assets/js/vendor/waves.js",
          folder.src + "admin/assets/js/vendor/jquery.waypoints.min.js",
          folder.src + "admin/assets/js/vendor/jquery.counterup.min.js"
      ], folder.dist + "backend/assets/js/vendor.min.js")
  
      .copyDirectory(folder.src + "admin/assets/images", folder.dist + "backend/assets/images")
      .copyDirectory(folder.src + "admin/assets/fonts", folder.dist + "backend/assets/fonts")
  
      .scripts(folder.src + "admin/assets/js/pages/dashboard.init.js", folder.dist + "backend/assets/js/pages/dashboard.init.js")
      .scripts(folder.src + "admin/assets/js/pages/toastr.init.js", folder.dist + "backend/assets/js/pages/toastr.init.js")
      .scripts(folder.src + "admin/assets/js/pages/sweet-alerts.init.js", folder.dist + "backend/assets/js/pages/sweet-alerts.init.js")
      .scripts(folder.src + "admin/assets/js/pages/range-sliders.init.js", folder.dist + "backend/assets/js/pages/range-sliders.init.js")
      .scripts(folder.src + "admin/assets/js/pages/calendar.init.js", folder.dist + "backend/assets/js/pages/calendar.init.js")
      .scripts(folder.src + "admin/assets/js/pages/flot.init.js", folder.dist + "backend/assets/js/pages/flot.init.js")
      .scripts(folder.src + "admin/assets/js/pages/chartist.init.js", folder.dist + "backend/assets/js/pages/chartist.init.js")
      .scripts(folder.src + "admin/assets/js/pages/chartjs.init.js", folder.dist + "backend/assets/js/pages/chartjs.init.js")
      .scripts(folder.src + "admin/assets/js/pages/sparkline.init.js", folder.dist + "backend/assets/js/pages/sparkline.init.js")
      .scripts(folder.src + "admin/assets/js/pages/form-advanced.init.js", folder.dist + "backend/assets/js/pages/form-advanced.init.js")
      .scripts(folder.src + "admin/assets/js/pages/form-validation.init.js", folder.dist + "backend/assets/js/pages/form-validation.init.js")
      .scripts(folder.src + "admin/assets/js/pages/form-wizard.init.js", folder.dist + "backend/assets/js/pages/form-wizard.init.js")
      .scripts(folder.src + "admin/assets/js/pages/form-summernote.init.js", folder.dist + "backend/assets/js/pages/form-summernote.init.js")
      .scripts(folder.src + "admin/assets/js/pages/datatables.init.js", folder.dist + "backend/assets/js/pages/datatables.init.js")
      .scripts(folder.src + "admin/assets/js/pages/responsive-table.init.js", folder.dist + "backend/assets/js/pages/responsive-table.init.js")
      .scripts(folder.src + "admin/assets/js/pages/google-maps.init.js", folder.dist + "backend/assets/js/pages/google-maps.init.js")
      .scripts(folder.src + "admin/assets/js/pages/jqvector-maps.init.js", folder.dist + "backend/assets/js/pages/jqvector-maps.init.js")
  
      //toast
      .styles('./node_modules/jquery-toast-plugin/dist/jquery.toast.min.css', folder.dist + 'backend/libs/jquery-toast/jquery.toast.min.css')
      .scripts('./node_modules/jquery-toast-plugin/dist/jquery.toast.min.js', folder.dist + 'backend/libs/jquery-toast/jquery.toast.min.js')
  
      //sweetalert2
      .styles("./node_modules/sweetalert2/dist/sweetalert2.min.css", folder.dist + 'backend/libs/sweetalert2/sweetalert2.min.css')
      .scripts("./node_modules/sweetalert2/dist/sweetalert2.min.js", folder.dist + 'backend/libs/sweetalert2/sweetalert2.min.js')
  
      //switchery
      .styles("./node_modules/mohithg-switchery/dist/switchery.min.css", folder.dist + 'backend/libs/mohithg-switchery/switchery.min.css')
      .scripts("./node_modules/mohithg-switchery/dist/switchery.min.js", folder.dist + 'backend/libs/mohithg-switchery/switchery.min.js')
  
      //Axios
      .scripts("./node_modules/axios/dist/axios.js", folder.dist + 'backend/libs/axios.js')
  
      //Pages modules
      .babel(folder.src + "admin/assets/js/administrators/form.js", folder.dist + "backend/assets/js/administrators/form.js")
      .babel([
          folder.src + "admin/assets/js/custom.js",
          folder.src + "admin/assets/lib/loading-js/js/main.js",
      ], folder.dist + "backend/assets/js/jquery.custom.js")
  
      .options({
          processCssUrls: false
      })
      .sourceMaps()
      .version();
  
  
  // var third_party_assets = {
  //     css_js: [
  //         {"name": "jquery-knob", "assets": ["./node_modules/jquery-knob/dist/jquery.knob.min.js"]},
  //         {"name": "custombox", "assets": ["./node_modules/custombox/dist/custombox.min.js", "./node_modules/custombox/dist/custombox.min.css"]},
  //         {"name": "select2", "assets": ["./node_modules/select2/dist/js/select2.min.js", "./node_modules/select2/dist/css/select2.min.css"]},
  //         {"name": "bootstrap-tagsinput", "assets": ["./node_modules/@adactive/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js", "./node_modules/@adactive/bootstrap-tagsinput/dist/bootstrap-tagsinput.css"]},
  //         {"name": "bootstrap-maxlength", "assets": ["./node_modules/bootstrap-maxlength/bootstrap-maxlength.min.js"]},
  //         {"name": "bootstrap-select", "assets": ["./node_modules/bootstrap-select/dist/js/bootstrap-select.min.js", "./node_modules/bootstrap-select/dist/css/bootstrap-select.min.css"]},
  //         {"name": "bootstrap-timepicker", "assets": ["./node_modules/bootstrap-timepicker/js/bootstrap-timepicker.min.js", "./node_modules/bootstrap-timepicker/css/bootstrap-timepicker.min.css"] },
  //         {"name": "bootstrap-colorpicker", "assets": ["./node_modules/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js", "./node_modules/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css"]},
  //         {"name": "jquery-mask-plugin", "assets": ["./node_modules/jquery-mask-plugin/dist/jquery.mask.min.js"]},
  //         {"name": "bootstrap-datepicker", "assets": ["./node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js","./node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css"]},
  //         {"name": "bootstrap-daterangepicker", "assets": ["./node_modules/bootstrap-daterangepicker/daterangepicker.js", "./node_modules/bootstrap-daterangepicker/daterangepicker.css"] },
  //     ]
  // };
  