Skip to content

moonrailgun/svrx-plugin-parcel

Repository files navigation

svrx-plugin-parcel

svrx npm

svrx plugin for parcel

Usage

Please make sure that you have installed svrx already.

Via CLI

svrx -p "parcel"

Via API

const svrx = require('@svrx/svrx');

svrx({ plugins: ['parcel'] }).start();

with options

svrx({
    plugins: [{
        name: 'parcel',
        options: {
            entry: "main.html"
        }
    }]
}).start();

Options

same option with parcel: api doc

entry [String|Object]:

entry of parcel, allow string, array, glob. default is index.html

target [String]:

target of parcel, allow browser | node | electron, default is browser

watch [String]:

Enable parcel watch file change, default is true

minify [String]:

Enable parcel minify, default is process.env.NODE_ENV === 'production'

outDir [Object]:

outDir of parcel, default is ./dist

outFile [String]:

outFile of parcel, default is ./dist/index.html

Example

License

MIT

About

svrx plugin for parcel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published