Created
April 16, 2022 17:12
-
-
Save ph00lt0/24272ff14a58e8936431c8a6a57db3d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('watch', function () { | |
browserSync.init({ | |
files: ['{lib,templates}/**/*.twig', '*.php'], | |
proxy: 'https://' + 'localhost' + '.test', | |
host: 'localhost' + '.test', | |
open: 'external', | |
port: 8000, | |
https: { | |
key: | |
'/Users/' + 'user' + '/.config/valet/Certificates/' + 'localhost' + '.test.key', | |
cert: | |
'/Users/' + 'user' + '/.config/valet/Certificates/' + 'localhost' + '.test.crt', | |
}, | |
snippetOptions: { | |
whitelist: ['/wp-admin/admin-ajax.php'], | |
blacklist: ['/wp-admin/**'] | |
} | |
}); | |
gulp.watch('./assets/styles/**/*', gulp.series('styles')); | |
gulp.watch('./assets/scripts/**/*', gulp.series('scripts')); | |
gulp.watch('./assets/images/**/*', gulp.series('images')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment