nasrulhazim
2/18/2018 - 11:44 AM

Laravel: Datatables Webpack Setup

Laravel: Datatables Webpack Setup

    mix.js('resources/assets/js/app.js', 'public/js')
        .scripts([
            'node_modules/datatables.net/js/jquery.dataTables.js',
            'node_modules/datatables.net-bs4/js/dataTables.bootstrap4.js'
        ], 'public/js/datatable.js')
        .styles(['node_modules/datatables.net-bs4/css/dataTables.bootstrap4.css'], 'public/css/datatable.css')
        .sass('resources/assets/sass/app.scss', 'public/css');