parcel-mix

0.7.0 • Public • Published

Parcel Mix

Wrapped version of Parcel JS v1, configured as a replacement for my usage of Laravel Mix. It's a simple wrapper around Parcel to generate specific manifests, pre-set with my paths and such. If there's any interest for it, I might consider generalizing stuff a bit.

Install

npm i -D parcel-mix

Usage

Create a config files:

$ npx parcel-mix setup [name ?| kirby]

And then package.json scripts:

{
    "scripts": {
        "dev:assets": "mix [watch] [--no-hoist]",
        "production:assets": "NODE_ENV=production mix"
  }
}

"Experimental hoisting" is on by default, but can be turned off if it breaks stuff.

Gotchas

Running from a root directory

You must run the Parcel Mix from a root directory, where the parcel.mix.js is located, because I decided against included any piece of code doing "in this folder or up" search and any complicated cwd/root/folder/whatever logic.

2020 Adam.

Readme

Keywords

none

Package Sidebar

Install

npm i parcel-mix

Weekly Downloads

1

Version

0.7.0

License

ISC

Unpacked Size

8.34 kB

Total Files

7

Last publish

Collaborators

  • adamkiss