-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
The syntax options?.exclude ?? [] is not conducive to extension, as it cannot recognize files like *.less or *.scss The default configuration will cause the console to report an error GET 404 xxxxx:5173/app/route/index.less.
I looked at your source code in latest version and found the following issues:
export default (options: Options): Plugin => {
return devServer({
adapter: options?.adapter,
entry: options.entry,
exclude: options?.exclude ?? [ // !! โ ๏ธ this row code
...defaultOptions.exclude,
'/assets/**',
'/src/app/**',
// matches for vite's import assets suffixes
/\?(?:inline|url|no-inline|raw|import(?:&(?:inline|url|no-inline|raw)?)?)$/,
],
........
It is recommended to modify it to an extensible way to supplement the exclude parameter.
Thank you for providing this hono-rr7 adapter server plugin. I would be very grateful if it could be modified. ๐
Metadata
Metadata
Assignees
Labels
No labels