1.0.1 • Published 5 years ago

svrx-plugin-parcel v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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