laravel-theme | Theme and asset managing for laravel | Theme library
kandi X-RAY | laravel-theme Summary
kandi X-RAY | laravel-theme Summary
Theme and asset managing for laravel
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get Twig compiler .
- Configure asset url .
- Set content .
- Flush all cookies .
- Make file .
- Register the theme .
- Get options for theme .
- Start widget .
- Renders a template .
- Make directory .
laravel-theme Key Features
laravel-theme Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-theme
QUESTION
Is there a standard way to scale Laravel Mix to support a build process of 50+ different frontend themes?
I'm simply running npm run dev
and npm run watch
currently with four different themes in my webpack.mix.js file, and that goes through and builds/watches all of those themes at once, but I fear performance is going to break down when we go to scale. Ideally I would like to be able to only build/watch themes one at a time, e.g. npm run dev --theme:some-site
or npm run watch --theme:another-site
Here's what my webpack.mix.js is eventually going to look like at this rate if I don't change anything:
...ANSWER
Answered 2019-Sep-19 at 15:52According to the documentation, you can use environment variables to inject parameters into Laravel Mix. Combine this with a custom script in your package.json
and you get what you want.
The default package.json
comes with the following two scripts (and more):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-theme
Theme on Packagist
Theme on GitHub
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page