invalid parcel entry points in the manifest.json file are deleted in the dist/ output
See original GitHub issueI have a manifest file which has this field
"web_accessible_resources": ["*.woff2"],
The generated output is:
"web_accessible_resources": [],
The woff2
files are output by Parcel from an import in one of my .css
files as expected, so I just want this value carried across to the output manifest.json
Importing the font files directly in web_accessible_resources
does not work since they are included in node_modules
and the output directory is a mess:
"web_accessible_resources": ["../node_modules/file-icons-js/fonts/fontawesome.woff2"]
results in the output dir:
dist/__/node_modules/file-icons-js/fonts/fontawesome.woff2
the double underscore throws an error in Chrome as _
prefixed dirs are reserved.
My proposed solution here would be to validate the values before using them as parcel entry points and not remove them if they are invalid entry points.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Can't get rid of missing manifest.json error - Stack Overflow
The manifest.json file is likely where it's supposed to be. The solution is to add an entry in your web.config file under the...
Read more >@parcel/transformer-css | Yarn - Package Manager
Changelog. All notable changes to Parcel will be documented in this file. The format is based on Keep a Changelog and Parcel adheres...
Read more >Targets - Parcel
“Entries” are the files that Parcel starts at when building your source code. They can be specified on the CLI, or using the...
Read more >Parcel community
manifest.json provides metadata used when your web app is installed on a ... Only files inside the `public` folder can be referenced from...
Read more >parcel/transformer-webmanifest NPM
entries ]. Entry files to start bundling, these will be preserved as entry points in the output. Defaults to package.json#source , ...
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 Free
Top 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
Thanks! Will take a look at this soon 😃
Here is an example repo demonstrating the generated output being removed https://github.com/jthegedus/parcel-plugin-web-extension-test