Skip to content

Commit

Permalink
fix: beforeCreate event in serve method
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Oct 23, 2020
1 parent 17555d6 commit c368555
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ const self = module.exports = { // eslint-disable-line
fs.readFileSync(getPropValue(config, 'build.tailwind.css')) :
'@tailwind components; @tailwind utilities;'

if (config.events && typeof config.events.beforeCreate === 'function') {
await config.events.beforeCreate(config)
}

await self.render(await fs.readFile(file, 'utf8'), {
maizzle: config,
tailwind: {
Expand Down

0 comments on commit c368555

Please sign in to comment.