Skip to content

Vite Plugin BUG, exclude param is not conducive to expansion.ย #72

@csd998aaa

Description

@csd998aaa

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions