https://github.com/zephyrpersonal/parcel-plugin-assets-dist
a parcel plugin to transfer bundled assets to a subdirectory for an easy-deploy purpose
https://github.com/zephyrpersonal/parcel-plugin-assets-dist
parcel parcel-bundler parcel-plugin
Last synced: 10 months ago
JSON representation
a parcel plugin to transfer bundled assets to a subdirectory for an easy-deploy purpose
- Host: GitHub
- URL: https://github.com/zephyrpersonal/parcel-plugin-assets-dist
- Owner: zephyrpersonal
- Created: 2018-09-01T08:42:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-01T08:48:09.000Z (over 7 years ago)
- Last Synced: 2025-03-05T01:35:39.178Z (about 1 year ago)
- Topics: parcel, parcel-bundler, parcel-plugin
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# parcel-plugin-assets-dist
a parcel plugin to transfer bundled assets to a subdirectory for an easy-deploy purpose.
## Install
install package and all done
```bash
yarn add -D parcel-plugin-assets-dist
```
## What for
this plugin will do the job only in production enviroment
e.g. NODE_ENV=production parcel build index.html
original
```
src/index.html ===> dist/index.html
src/whatever/a.css ===> dist/a.css
src/whatever/b.js ===> dist/b.js
```
use this plugin
```
src/index.html ===> dist/index.html
src/whatever/a.css ===> dist/assets/a.css
src/whatever/b.js ===> dist/assets/b.js
```
and now you may skip the complex configuration of your gateway
## Required
parcel-bundler >= 1.8
node >= 7