mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-25 10:27:33 +00:00
14 lines
380 B
TypeScript
14 lines
380 B
TypeScript
export { isVue } from '../../../nuxt/src/core/utils/plugins'
|
|
|
|
// Copied from vue-bundle-renderer utils
|
|
const IS_CSS_RE = /\.(?:css|scss|sass|postcss|pcss|less|stylus|styl)(?:\?[^.]+)?$/
|
|
|
|
export function isCSS (file: string) {
|
|
return IS_CSS_RE.test(file)
|
|
}
|
|
|
|
/** @since 3.9.0 */
|
|
export function toArray<T> (value: T | T[]): T[] {
|
|
return Array.isArray(value) ? value : [value]
|
|
}
|