D
D
David2019-12-25 17:31:19
Laravel
David, 2019-12-25 17:31:19

How to properly load styles and js scripts in Laravel package?

Developed an admin package for Laravel. How to run npm run prod on a package when already uploaded the package to the framework. I wrote all the paths to the styles and js scripts of the package in the webpack.mix.js file, which is located in the package.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JhaoDa, 2019-12-25
@JhaoDa

I wrote all the paths to the styles and js scripts of the package in the webpack.mix.js file
In vain.
The correct path, as usual, is described in the documentation .

A
Andrey Suha, 2019-12-25
@andreysuha

Why would you want to start something? Include already assembled styles and js in the package

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question