Skip to content

Commit

Permalink
Remove homepage from Snowpack config (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow authored Jun 18, 2020
1 parent c71f482 commit df3a7e4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions docs/docs/05-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ $ snowpack dev --no-bundle
"unistore/full/preact.es.js", // An ESM file within a package (supports globs)
"bulma/css/bulma.css" // A non-JS static asset (supports globs)
],
"homepage": "/your-project",
"scripts": { /* ... */ },
"installOptions": { /* ... */ },
"devOptions": { /* ... */ },
Expand All @@ -64,10 +63,6 @@ $ snowpack dev --no-bundle
- Useful for excluding tests and other unnecessary files from the final build. Supports glob pattern matching.
- **`install`** | `string[]`
- Known dependencies to install with Snowpack. Useful for installing packages manually and any dependencies that couldn't be detected by our automatic import scanner (ex: package CSS files).
- **`homepage`** | `string`
- By default, Snowpack's builds your app assuming it will be hosted at the server root.
- You can set the "homepage" whenever your project is deployed anywhere other than the domain's root URL.
- Note: Snowpack will also read this value from your `package.json` manifest.
- **`scripts`**
- Set build scripts to transform your source files. See the section below for more info.
- **`installOptions.*`**
Expand Down Expand Up @@ -126,7 +121,7 @@ $ snowpack dev --no-bundle
#### Build Options

- **`baseUrl`** | `string` | Default: `/`
- In your HTML, replace all instances of `%PUBLIC_URL%` with this (inspired by the same [Create React App](https://create-react-app.dev/docs/using-the-public-folder/) concept). This is useful if your app will be deployed to a subdirectory.
- In your HTML, replace all instances of `%PUBLIC_URL%` with this (inspired by the same [Create React App](https://create-react-app.dev/docs/using-the-public-folder/) concept). This is useful if your app will be deployed to a subdirectory. _Note: if you have `homepage` in your `package.json`, Snowpack will actually pick up on that, too._
- **`metaDir`** | `string` | Default: `__snowpack__`
- By default, Snowpack outputs Snowpack-related metadata such as [HMR](#hot-module-replacement) and [ENV](#environment-variables) info to a folder called `__snowpack__`. You can rename that folder with this option (e.g.: `metaDir: 'static/snowpack'`).

Expand Down

0 comments on commit df3a7e4

Please sign in to comment.