Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide example with parcel #4

Closed
PSanetra opened this issue Mar 24, 2022 · 0 comments
Closed

Provide example with parcel #4

PSanetra opened this issue Mar 24, 2022 · 0 comments

Comments

@PSanetra
Copy link
Member

PSanetra commented Mar 24, 2022

An example using parcel is missing.

It should use the resolver and reporter plugins mentioned in here and ignore the spa_config.js file in the index.html:
parcel-bundler/parcel#2398 (comment)

.parcelrc:

{
  "extends": "@parcel/config-default",
  "resolvers": ["parcel-resolver-ignore", "..."],
  "reporters": ["...", "parcel-reporter-static-files-copy"]
  // ...
}

package.json:

{
  "parcelIgnore": [
    ".*/spa_config\\.js"
  ],
  "staticFiles": {
   // This is a little dirty as `spa_config.js` must be in `public` and in `public/scripts`
   // See https://github.com/elwin013/parcel-reporter-static-files-copy/issues/20
    "staticPath": "public/scripts"
  },
  "devDependencies": {
    "parcel": "^2.4.0",
    "parcel-reporter-static-files-copy": "^1.3.4",
    "parcel-resolver-ignore": "^2.0.0"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant