Re-enable PurgeCSS, add deploy.sh

This commit is contained in:
Oliver Davies 2018-07-14 00:40:32 +01:00
parent 01878fdac6
commit d42069eb7e
2 changed files with 28 additions and 7 deletions

View file

@ -13,13 +13,13 @@ mix.disableNotifications()
.copyDirectory('assets/images', 'source/build/images')
.copyDirectory('node_modules/font-awesome/fonts', 'source/build/fonts')
.tailwind()
// .purgeCss({
// globs: [
// path.join(__dirname, 'output_*/**/*.html'),
// ],
// whitelistPatterns: [/language/, /hljs/],
// whitelistPatternsChildren: [/^markdown$/]
// })
.purgeCss({
globs: [
path.join(__dirname, 'output_*/**/*.html'),
],
whitelistPatterns: [/language/, /hljs/],
whitelistPatternsChildren: [/^markdown$/]
})
.options({
processCssUrls: false
});