question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

invalid parcel entry points in the manifest.json file are deleted in the dist/ output

See original GitHub issue

I 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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kevincharmcommented, Sep 23, 2018

Thanks! Will take a look at this soon 😃

1reaction
jthegeduscommented, Sep 23, 2018

Here is an example repo demonstrating the generated output being removed https://github.com/jthegedus/parcel-plugin-web-extension-test

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found