parcel-plugin-assets-dist

1.0.0 • Public • Published

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

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i parcel-plugin-assets-dist

      Weekly Downloads

      0

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      1.61 kB

      Total Files

      4

      Last publish

      Collaborators

      • zephyr419