Skip to content

Instantly share code, notes, and snippets.

@nasrulhazim
Created February 18, 2018 11:44
Show Gist options
  • Save nasrulhazim/4f234ac97eba925d03efcd3c9424a097 to your computer and use it in GitHub Desktop.
Save nasrulhazim/4f234ac97eba925d03efcd3c9424a097 to your computer and use it in GitHub Desktop.
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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment