const { mix } = require('laravel-mix');

// Core Module: DataTables Javascript and Plugins
mix.scripts([
    'node_modules/datatables.net/js/jquery.dataTables.js',
    'node_modules/datatables.net-bs/js/dataTables.bootstrap.js',
    'node_modules/datatables.net-buttons/js/dataTables.buttons.js',
    'node_modules/datatables.net-buttons-bs/js/buttons.bootstrap.js',
    'node_modules/datatables.net-buttons/js/buttons.colVis.js',
    'node_modules/datatables.net-buttons/js/buttons.html5.js',
    'node_modules/datatables.net-buttons/js/buttons.print.js',
    'node_modules/datatables.net-rowgroup/js/dataTables.rowGroup.js',
    'node_modules/datatables.net-select/js/dataTables.select.js',
    'node_modules/jquery-datatables-checkboxes/js/dataTables.checkboxes.js',
    //'node_modules/datatables.net-responsive/js/dataTables.responsive.js',
    'vendor/yajra/laravel-datatables-buttons/src/resources/assets/buttons.server-side.js',
    'modules/Core/Resources/assets/js/datatables.buttons.js',
    'modules/Core/Resources/assets/js/datatables.delete-entry.js'
], 'modules/Core/Assets/ignite/js/core/datatables.js');

// Core Module: DataTables CSS and Plugins
mix.styles([
    'node_modules/datatables.net-bs/css/dataTables.bootstrap.css',
    'node_modules/datatables.net-rowgroup-bs/css/rowGroup.bootstrap.css',
    'node_modules/datatables.net-buttons-bs/css/buttons.bootstrap.css',
    'node_modules/datatables.net-select-dt/css/select.dataTables.css',
    //'node_modules/datatables.net-responsive-dt/css/responsive.dataTables.min.css',
    'modules/Core/Resources/assets/css/datatables.overrides.css'
], 'modules/Core/Assets/ignite/css/core/datatables.css');

// CMS Module: Page List
mix.js('modules/Cms/Resources/assets/js/cms.js', 'modules/Core/Assets/ignite/js/cms');
mix.js('modules/Catalog/Resources/assets/js/attributes.js', 'modules/Core/Assets/ignite/js/catalog');
mix.js('modules/Import/Resources/assets/js/import.js', 'modules/Core/Assets/ignite/js/import');
