Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
fix: Quantum is running only once, ignoring watch option
Browse files Browse the repository at this point in the history
  • Loading branch information
nchanged committed Jan 18, 2018
1 parent 02d9913 commit f4d8f5f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/quantum/plugin/QuantumPlugin.ts
Expand Up @@ -43,11 +43,17 @@ export class QuantumPluginClass implements Plugin {
})
});
}

producerEnd(producer: BundleProducer) {
private consume(producer: BundleProducer){
let core = new QuantumCore(producer, new QuantumOptions(producer, this.coreOpts));
return core.consume();
}

producerEnd(producer: BundleProducer) {
producer.sharedEvents.on('file-changed', () => {
this.consume(producer);
});
return this.consume(producer);
}
};

export const QuantumPlugin = (opts?: IQuantumExtensionParams) => {
Expand Down

0 comments on commit f4d8f5f

Please sign in to comment.