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 9b48fd1 commit 52e6d3eCopy full SHA for 52e6d3e
core/lib/patternlab.js
@@ -539,7 +539,6 @@ const patternlab_engine = function (config) {
539
plutils.log.info("Incremental builds enabled.");
540
} else {
541
// needs to be done BEFORE processing patterns
542
- fs.removeSync(paths.public.patterns);
543
fs.emptyDirSync(paths.public.patterns);
544
}
545
@@ -683,7 +682,7 @@ const patternlab_engine = function (config) {
683
682
684
this.events.on('patternlab-global-change', () => {
685
if (!patternlab.isBusy) {
686
- options.cleanPublic = false;
+ options.cleanPublic = true; //rebuild everything
687
return this.build(callback, options);
688
689
return Promise.resolve();
0 commit comments