laravel-theme | Simple theme manager for Laravel | Web Framework library
kandi X-RAY | laravel-theme Summary
kandi X-RAY | laravel-theme Summary
Currently the project is DISCONTINUED. However, feel free to fork it and continue its development!.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register the service provider .
- Add a location .
- Set current theme .
- Get the asset path .
- Get the name of the theme .
- Get the facade accessor .
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
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
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