tethys/webpack.mix.js

34 lines
1.4 KiB
JavaScript
Raw Normal View History

2018-08-06 12:30:51 +00:00
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management siehe https://laravel.com/docs/5.5/mix
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
// mix.setPublicPath('../');
2018-08-29 15:18:15 +00:00
// .sass('resources/assets/sass/app1.scss', 'public/css')
2018-09-06 15:58:54 +00:00
mix.js('resources/assets/js/datasetPublish.js', 'public/backend/publish')
2018-09-07 13:31:05 +00:00
.js('resources/assets/js/app.js', 'public/js')
2018-10-18 14:51:46 +00:00
.js('resources/assets/js/lib.js', 'public/js')
2019-04-08 16:31:40 +00:00
.js('resources/assets/js/releaseDataset.js', 'public/backend/publish')
2019-04-11 16:52:10 +00:00
.js('resources/assets/js/approveDataset.js', 'public/backend/publish')
2018-09-06 15:58:54 +00:00
.scripts([
2018-09-07 13:31:05 +00:00
'node_modules/datatables.net/js/jquery.dataTables.js',
2018-09-06 15:58:54 +00:00
'node_modules/datatables.net-buttons/js/dataTables.buttons.js',
2018-09-07 13:31:05 +00:00
'node_modules/datatables.net-buttons/js/buttons.flash.js',
2018-09-06 15:58:54 +00:00
'node_modules/datatables.net-buttons/js/buttons.html5.js',
'node_modules/datatables.net-buttons/js/buttons.print.js',
], 'public/js/dataTable.js');
2018-08-29 15:18:15 +00:00
// .options({
// //publicPath: '../'
// processCssUrls: false
// });
// mix.copy('node_modules/bootstrap-sass/assets/fonts/bootstrap', 'public/fonts/bootstrap');