[Vuejs]-Adding a app.js file from resource folder not public

0πŸ‘

βœ…

Are you familiar with any build tools like webpack, grunt, gulp, etc? Those are commonly used to bundle your application resources and move them to the desired destination, i.e. public in your case. I’d suggest reading some intro material to webpack as it is very often used in laravel + vuejs projects.

There are additional scripts in the package.json file that will run mom tasks too.

You will find npm run dev for local development and npm run prod for production.

πŸ‘€user320487

0πŸ‘

Try npm run dev
This will compile all your assets and you will get a single app.js file in the public folder.
You can then use that app.js file in your HTML file

πŸ‘€Pritam Bohra

Leave a comment