-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwebpack.mix.js
54 lines (48 loc) · 1.85 KB
/
webpack.mix.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| 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.
|
*/
// Fix for the Jquery problem
mix.webpackConfig(webpack => {
return {
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery',
})
]
};
});
/* JS (generate: manifest.js, vendor.js, app.js)*/
/* jQuery first, then Popper.js (tooltips), then Bootstrap JS */
mix.js('resources/js/app.js', 'public/js')
.extract([
'jquery',
'popper.js', //((positioning engine for tooltips))
//'bootstrap'
]);
/* CSS - Vendor - OK*/
/*mix.styles([
'node_modules/bootstrap/dist/css/bootstrap.css',
'node_modules/jquery-ui/themes/base/core.css',
'node_modules/jquery-ui/themes/base/accordion.css',
'node_modules/smartmenus/dist/addons/bootstrap-4/jquery.smartmenus.bootstrap-4.css',
'node_modules/smartmenus/dist/css/sm-core-css.css',
'node_modules/slick-carousel/slick/slick.css',
'node_modules/slick-carousel/slick/slick-theme.css',
'node_modules/@fancyapps/fancybox/dist/jquery.fancybox.css',
'node_modules/bootstrap-select/dist/css/bootstrap-select.css',
'node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.css',
'node_modules/bootstrap-timepicker/css/bootstrap-timepicker.css',
'node_modules/cookieconsent/build/cookieconsent.min.css',
], 'public/css/vendor.css');*/
/* CSS - Custom - OK */
mix.sass('resources/sass/app.scss', 'public/css');