I\'m already familiar with laravel 5.1 mix (elixir), and recently I decided to test laravel 5.4 mix.
I mixed my libs on vendors files.
mix
.styles([
The solution using laravel mix is force all modules to use the same jquery version: This is my code at top of webpack.mix.js:
mix.webpackConfig({
resolve: {
alias: {
'jquery': path.join(__dirname, 'node_modules/jquery/src/jquery')
}
}
});
Just uncomment this line in your assets/js/bootstrap.js
file:
window.$ = window.jQuery = require('jquery');
And make sure to require the bootstrap file in your assets/js/app.js
like this:
require('./bootstrap');
mix.autoload({ 'jquery': ['window.$', 'window.jQuery'] })
I had to add this to my webpack.mix.js