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',
    'Resources/assets/js/datatables.buttons.server-side.js',
    'Resources/assets/js/datatables.buttons.js',
    'Resources/assets/js/datatables.delete-entry.js'
], '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',
    'Resources/assets/css/datatables.overrides.css'
], 'Assets/ignite/css/core/datatables.css');

// CMS: Page List
mix.js('Resources/assets/js/cms.js', 'Assets/ignite/js/cms');
mix.js('Resources/assets/js/import.js', 'Assets/ignite/js/import');
