In case you want to rebuild the static scripts or need a build for a custom environment.
Execute yarn install
to install the dependencies for this theme.
To re-generate the asset files execute:
npm run build
These new assets will be stored at Resources/public/
.
The AdminLTE theme comes pre-compiled for usage at domain level. If your application runs under a subdirectory, you have to change a line in the file webpack.config.js from:
.setPublicPath('/bundles/adminlte/')
to your subdirectory.
Lets say run app runs at https://www.example.com/my-app/ then you need to change it to:
.setPublicPath('/my-app/bundles/adminlte/')
This path is used for referencing assets from the users browser, so the generated path must be an absolute path to
the directory my-app/public/bundles/adminlte/
.
Please go back to the AdminLTE bundle documentation to find out more about using the theme.