parcel-mix
v0.7.0
Published
Simple replacement for my usage of Laravel Mix, using Parcel JS
Downloads
9
Readme
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.