mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-26 21:10:09 +08:00
8 lines
241 B
TypeScript
8 lines
241 B
TypeScript
|
|
/** HelloWorld.vue?vue&type=style&index=0&scoped=true&lang.css -> HelloWorld.vue */
|
|
export function cleanUrl(url: string) {
|
|
return url.replace(/(\?|#).*$/, '')
|
|
}
|
|
|
|
export const vue_js_ts_extensions = ['.vue', '.js', '.jsx', '.ts', '.tsx']
|