svrx-plugin-parcel

1.0.1 • Public • Published

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

/svrx-plugin-parcel/

    Package Sidebar

    Install

    npm i svrx-plugin-parcel

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.33 kB

    Total Files

    4

    Last publish

    Collaborators

    • moonrailgun