Skip to content

Commit

Permalink
fix(webpack): force exclude .html, close #1297
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 19, 2022
1 parent 92ef8b0 commit dc9b27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack/src/index.ts
Expand Up @@ -49,7 +49,7 @@ export default function WebpackPlugin<Theme extends {}>(
name: 'unocss:webpack',
enforce: 'pre',
transformInclude(id) {
return filter('', id)
return filter('', id) && !id.match(/\.html$/)
},
async transform(code, id) {
const result = await applyTransformers(ctx, code, id, 'pre')
Expand Down

0 comments on commit dc9b27d

Please sign in to comment.