mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 04:57:40 +08:00
improve ssr js/css file check
This commit is contained in:
parent
2efc0446b3
commit
a45e40d5bf
@ -1,5 +1,5 @@
|
||||
/* @flow */
|
||||
|
||||
export const isJS = (file: string): boolean => /\.js($|\?)/.test(file)
|
||||
export const isJS = (file: string): boolean => /\.js(\?[^.]+)?$/.test(file)
|
||||
|
||||
export const isCSS = (file: string): boolean => /\.css($|\?)/.test(file)
|
||||
export const isCSS = (file: string): boolean => /\.css(\?[^.]+)?$/.test(file)
|
||||
|
Loading…
Reference in New Issue
Block a user