We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f5c143 commit ea6b7d3Copy full SHA for ea6b7d3
core/index.js
@@ -372,14 +372,14 @@ const patternlab_module = function(config) {
372
copier()
373
.copyAndWatch(patternlab.config.paths, patternlab, options)
374
.then(() => {
375
- this.events.on('patternlab-pattern-change', () => {
+ this.events.once(events.PATTERNLAB_PATTERN_CHANGE, f => {
376
if (!patternlab.isBusy) {
377
return this.build(options);
378
}
379
return Promise.resolve();
380
});
381
382
- this.events.on('patternlab-global-change', () => {
+ this.events.once(events.PATTERNLAB_GLOBAL_CHANGE, () => {
383
384
return this.build(
385
Object.assign({}, options, { cleanPublic: true }) // rebuild everything
0 commit comments