https://github.com/jongacnik/parcel-resolver-exclude-assets
Excludes paths starting with `assets`
https://github.com/jongacnik/parcel-resolver-exclude-assets
Last synced: about 1 year ago
JSON representation
Excludes paths starting with `assets`
- Host: GitHub
- URL: https://github.com/jongacnik/parcel-resolver-exclude-assets
- Owner: jongacnik
- Created: 2020-07-19T00:14:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T13:38:14.000Z (almost 3 years ago)
- Last Synced: 2025-02-12T18:18:55.155Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# parcel-resolver-exclude-assets
Tells [parcel](https://github.com/parcel-bundler/parcel) to skip paths starting with `assets`. This is useful when you want to process css/js but leave assets (especially ones included in css) alone.
```css
body {
background-image: url('assets/background.jpg'); /* parcel will now skip resolving this asset */
}
```
## Usage
```
yarn add parcel-resolver-exclude-assets --dev
```
**.parcelrc**
```json
{
"extends": "@parcel/config-default",
"resolvers": [
"parcel-resolver-exclude-assets",
"@parcel/resolver-default"
]
}
```
## Config
You can specify custom paths in your `package.json`
```json
{
"resolverExcludeAssets": [
"assets",
"images",
"fonts"
]
}
```