Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f1d348bb6a | |||
| fab41e358c |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartparcel",
|
"name": "@pushrocks/smartparcel",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartparcel",
|
"name": "@pushrocks/smartparcel",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a wrapper for parcel",
|
"description": "a wrapper for parcel",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
|||||||
@@ -40,11 +40,15 @@ export class Parcel {
|
|||||||
* just builds
|
* just builds
|
||||||
*/
|
*/
|
||||||
public async build() {
|
public async build() {
|
||||||
const bundler = new plugins.parcel(this.entryFiles, this.options);
|
const bundler = new plugins.parcel(this.entryFiles, {
|
||||||
|
...this.options,
|
||||||
|
watch: false
|
||||||
|
});
|
||||||
|
|
||||||
// Run the bundler, this returns the main bundle
|
// Run the bundler, this returns the main bundle
|
||||||
// Use the events if you're using watch mode as this promise will only trigger once and not for every rebuild
|
// Use the events if you're using watch mode as this promise will only trigger once and not for every rebuild
|
||||||
const bundle = await bundler.bundle();
|
const bundle = await bundler.bundle();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(fromArg: string | string[], outputDirArg: string, outputFileArg: string) {
|
constructor(fromArg: string | string[], outputDirArg: string, outputFileArg: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user