I'm unable to get JQuery UI required when using Laravel Elixir with Webpack.
Here is my gulpfile.js, nothing unusual:
const elixir = require('laravel-elixir');
elixir.config.sourcemaps = false;
elixir(mix => {
mix.sass('app.scss')
.webpack('app.js');
});
My app.js file is where I'm trying to require both JQuery and JQuery UI. I've tried multiple things but this is where I'm at:
window.$ = window.jQuery = require('jquery');
window.$ = $.extend(require('jquery-ui'));
No matter what I do, I can't seem to get JQuery UI required and working.