Skip to content

Commit

Permalink
revert: normalize content source paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Oct 11, 2022
1 parent e4b5da2 commit b1beedf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/generators/tailwindcss.js
Expand Up @@ -38,8 +38,12 @@ module.exports = {
important: true,
content: {
files: [
typeof layoutsRoot === 'string' ? path.normalize(`${layoutsRoot}/**/*.html`) : './src/layouts/**/*.html',
typeof componentsRoot === 'string' ? path.normalize(`${componentsRoot}/**/*.html`) : './src/components/**/*.html',
typeof layoutsRoot === 'string' && layoutsRoot ?
`${layoutsRoot}/**/*.html`.replace(/\/\//g, '/') :
'./src/layouts/**/*.html',
typeof componentsRoot === 'string' && componentsRoot ?
`${componentsRoot}/**/*.html`.replace(/\/\//g, '/') :
'./src/components/**/*.html',
{raw: html, extension: 'html'}
]
}
Expand Down

0 comments on commit b1beedf

Please sign in to comment.