diff --git a/CHANGELOG.md b/CHANGELOG.md index 309d9a2..a2c6fac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 2.2.4: 2021-06-23 + +* Speed up styles tasks by adding a separate watch for prodstyles + ### 2.2.3: 2021-06-23 * Confirmed fix for rule-empty-line-before from Air-light 7.7.3 diff --git a/gulp/config.js b/gulp/config.js index 9d5ba32..9c7f798 100644 --- a/gulp/config.js +++ b/gulp/config.js @@ -63,6 +63,7 @@ module.exports = { gutenberg: themeDir + 'sass/base/gutenberg.scss', src: themeDir + 'sass/*.scss', watch: themeDir + 'sass/**/*.{sass,scss}', + watchprod: themeDir + 'css/dev/*.css', development: themeDir + 'css/dev/', production: themeDir + 'css/prod/', stylelint: { diff --git a/gulp/tasks/watch.js b/gulp/tasks/watch.js index 2a4d522..197a9e2 100644 --- a/gulp/tasks/watch.js +++ b/gulp/tasks/watch.js @@ -12,7 +12,8 @@ const { // Task function watchfiles() { bs.init(config.browsersync.src, config.browsersync.opts); - watch(config.styles.watch, series('devstyles', 'prodstyles', 'lintstyles')).on('error', handleError()); + watch(config.styles.watch, series('devstyles', 'lintstyles')).on('error', handleError()); + watch(config.styles.watchprod, series('prodstyles')).on('error', handleError()); watch(config.php.watch, series('phpcs')).on('change', bs.reload); watch(config.js.watch).on('change', series('js'), bs.reload); };