If you are including jQuery by using a cdn such as https://code.jquery.com/jquery-2.2.4.min.js, Laravel Mix will emit an error when compiling your scripts. First of all, you have to copy on the root of your project a fresh copy of default `webpack.config.js` (see here for more details). Next, comment the following lines:
Recent Posts
Top Posts
- Enhancing NextJS Projects with Mantine UI: A Seamless Experience in TypeScript
- WP Bones 1.1.5 Released
- Styled Components attributes
- WP Bones: a plugin framework for Laravel lovers
- How to force ANSI color output in your artisan command
- A different way to handle the config in Laravel packages
- Laravel-Mix: avoid jQuery
- WordPress: useful shortcode for your Custom Post Type
- How to create an object that acts like an array
- dangerouslySetInnerHTML stateless component
Follow me on Twitter
My Tweets© 2024 Undolog | Research & Development Blog