Skip to content

Commit

Permalink
fix: fix unused css filter check on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 25, 2020
1 parent cf5de5b commit 3486d21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node/server/serverPluginCss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
} from '../utils/cssUtils'
import qs from 'querystring'
import chalk from 'chalk'
import slash from 'slash'

interface ProcessedEntry {
css: string
Expand Down Expand Up @@ -54,7 +55,7 @@ export const cssPlugin: ServerPlugin = ({ root, app, watcher, resolver }) => {
/** filter unused files */
if (
!Array.from(processedCSS.keys()).some((processed) =>
file.includes(processed)
slash(file).includes(processed)
) &&
!srcImportMap.has(file)
) {
Expand Down

0 comments on commit 3486d21

Please sign in to comment.