svrx-plugin-parcel
v1.0.1
Published
The svrx plugin for parcel
Downloads
6
Readme
svrx-plugin-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