[Vuejs]-Installing Vue 3.x In LVM Stack Using Webpack and NPM

0👍

https://laravel.com/docs/8.x/mix#working-with-scripts

As it says in the above link, since I’m using Webpack which compiles JS code. I found that I must import the specific node module. If you have programmed before, think of it as importing or including a file in Java, C++, Python, or what have you.

In my case I needed to realize that I not only had to import one module, but many. And then specifically use the same file I imported into to type the relevant code. I still can’t type the JS into the .blade.php file, but this should work well enough.

This an example of my custom.js
import node_module1
import node module2
// code goes here

Leave a comment