Jump to content

Laravel Webpack Mix Breaking JS Function

I have a JS file with some functions I made. Whenever I include the script on the html file normally, the functions work fine. However, when I include the script in laravel webpck mix, by modifiying webpack.mix.js, the script breaks and I can't use any of my JS functions. If anyone has had a similar issue and knows of a solution please let me know. Thanks in advance.

Remember to quote or @mention others, so they are notified of your reply

AMD Ryzen 9 5950X | Arctic Liquid Freezer II 360 | MSI B450 TOMAHAWK MAX | G.Skill Trident Z RGB 32 GB DDR4-3600 | XFX Swift AMD Radeon RX 9070XT

Samsung 980 EVO Plus 2TB | SK hynix Gold S31 500GB SSD | Seagate Barracuda Compute 2 TB 7200RPM HDD | 1TB Samsung 860 EVO SSD | 2TB Samsung 970 EVO Plus NVMe SSD | 3x Phanteks T30-120

Corsair RM1000e 1000 W 80+ Gold Certified Modular PSU | Corsair 5000D Airflow Windows 11 Home

Link to comment
https://linustechtips.com/topic/1245359-laravel-webpack-mix-breaking-js-function/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×