Feature request - multiple vendor/manifest files
See original GitHub issueI have read quite a few “issues” (https://github.com/JeffreyWay/laravel-mix/issues/197 & https://github.com/JeffreyWay/laravel-mix/issues/488) on here and I would like to make a feature request to solve this.
I find it very useful to have multiple entry points / vendor file extractions, for use cases such as backend and frontend assets extraction.
Simple example
// Mix backend resources.
mix.js('resources/assets/backend/js/app.js', 'public/backend/js')
.extract(['vue', 'vuetify']);
// Mix frontend resources.
mix.js('resources/assets/js/app.js', 'public/js')
.extract(['jquery', 'bootstrap']);
Currently (with Laravel Mix 1.2.0), the mix-manifest.json
file would look like this:
{
"/backend/js/app.js": "/backend/js/app.js",
"/js/vendor.js": "/js/vendor.js",
"/js/app.js": "/js/app.js",
"/js/manifest.js": "/js/manifest.js",
}
The output should be as follows:
{
"/backend/js/vendor.js": "/backend/js/vendor.js",
"/backend/js/app.js": "/backend/js/app.js",
"/backend/js/manifest.js": "/backend/js/manifest.js",
"/js/vendor.js": "/js/vendor.js",
"/js/app.js": "/js/app.js",
"/js/manifest.js": "/js/manifest.js",
}
I would love to see this included, because in my case I actually even have 3 entry points. Haha
Any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:48
- Comments:22 (4 by maintainers)
Top Results From Across the Web
Feature request - multiple vendor/manifest files · Issue #989
I find it very useful to have multiple entry points / vendor file extractions, for use cases such as backend and frontend assets...
Read more >Manifests | Android Open Source Project
This setup enables multiple products with the same board to share the same vendor image (which provides common HALs) yet have different ODM ......
Read more >Use an Input Manifest File - Amazon SageMaker
Each line in an input manifest file is an entry containing an object, ... Use the source key for single and multi-label text...
Read more >The Manifest - webpack
Any third-party library or "vendor" code your source is dependent on. A webpack runtime and manifest that conducts the interaction of all modules....
Read more >Web Application Manifest - W3C
This specification defines a JSON-based file format that provides ... to appear in a manifest, some user agents might require one or more...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ievgenklymenko Just have two separate webpack.mix.js file.
package.json
server.mix.js
client.mix.js
Here is one way to achieve this right now - https://github.com/omnichronous/multimix