Please make sure that you have installed svrx already.
svrx -p "parcel"
const svrx = require('@svrx/svrx');
svrx({ plugins: ['parcel'] }).start();
with options
svrx({
plugins: [{
name: 'parcel',
options: {
entry: "main.html"
}
}]
}).start();
same option with parcel: api doc
entry of parcel, allow string, array, glob. default is index.html
target of parcel, allow browser | node | electron
, default is browser
Enable parcel watch file change, default is true
Enable parcel minify, default is process.env.NODE_ENV === 'production'
outDir of parcel, default is ./dist
outFile of parcel, default is ./dist/index.html
MIT