@pritesh9/parcel-namer-preserve-structure

1.2.0 • Public • Published

@pritesh9/parcel-namer-preserve-structure

  • Preserves file names and directory structure.
  • Only kicks in production mode. Developement mode is skiped as it requires unique names.
  • Content hashing is disabled by default.

Add "namerSourceFolder" section in package.json and specify source directory relative to current working directory.

Example: Following line specifies, all source files are located in "src" folder in current working directoy.

"namerSourceFolder": "src"

Add "namerContentHash" section in package.json with boolean value to eneble or disable content hash. It is disabled by default.

Example: Following line enables content hash and

"namerContentHash": true

Add following to .parcelrc file located in project root directory (next to package.json) to actually use the namer plugin.

{
	"extends": "@parcel/config-default",
	"namers": ["@pritesh9/parcel-namer-preserve-structure", "..."]
}

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @pritesh9/parcel-namer-preserve-structure

    Weekly Downloads

    1

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    4.46 kB

    Total Files

    4

    Last publish

    Collaborators

    • pritesh9