A plugin for Metalsmith to use Parcel for bundling of assets.
You can either install by running yarn (recommended)
yarn add metalsmith-parcel parcel-bundleror use npm
npm install metalsmith-parcel parcel-bundler --savevar parcel = require('metalsmith-parcel')
Metalsmith(__dirname)
.use(parcel(file, options))
.build()See the parcel api documentation for details. Watch default to false in this plugin as it is not suitable for the Metalsmith build process.
Metalsmith(__dirname)
.use(parcel('src/main.js', {
watch: false
}))
.build()We use SemVer for versioning. For the versions available, see the tags on this repository.
MIT License, see LICENSE for details.