Prevent hljs classes from being stripped

This commit is contained in:
Oliver Davies 2018-06-05 07:05:33 +01:00
parent 155ceb89c4
commit e9237508a2

View file

@ -16,7 +16,9 @@ mix.disableNotifications()
.purgeCss({ .purgeCss({
globs: [ globs: [
path.join(__dirname, 'output_*/**/*.html'), path.join(__dirname, 'output_*/**/*.html'),
] ],
whitelistPatterns: [/language/, /hljs/],
whitelistPatternsChildren: [/^markdown$/]
}) })
.options({ .options({
processCssUrls: false processCssUrls: false