Include Datatables using webpack.mix.js without npm« Wróć do listy pytań

how to
Wysłane przez mrmucha
Zadane przez 20/08/2018 14:47
0

example

1
2
3
4
5
6
7
8
mix.js('resources/assets/js/app.js', 'public/js')
    .scripts([
        'resources/assets/js/datatables/DataTables/datatables.js'
    ],'public/js/datatable.js')
    .styles(['resources/assets/js/datatables/DataTables/datatables.css'], 'public/css/datatable.css')
   .sass('resources/assets/sass/app.scss', 'public/css');
 
mix.copy( 'resources/assets/js/datatables/DataTables/DataTables-1.10.18', 'public/css', false );
mix.js('resources/assets/js/app.js', 'public/js')
    .scripts([
        'resources/assets/js/datatables/DataTables/datatables.js'
    ],'public/js/datatable.js')
    .styles(['resources/assets/js/datatables/DataTables/datatables.css'], 'public/css/datatable.css')
   .sass('resources/assets/sass/app.scss', 'public/css');

mix.copy( 'resources/assets/js/datatables/DataTables/DataTables-1.10.18', 'public/css', false );
Wysłane przez mrmucha
Odpowiedziane 20/08/2018 14:47