shawnmcknight / test-rspack-favicon

Test of rspack favicon behavior compared to webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test of Rspack Favicon Behavior

Test Steps

  • Clone the repo
  • Run npm install
  • Run npm build

There will be a dist folder with two subfolders: rs and webpack. Those folders will each have an absolute and relative subfolder.

  • dist/rs/absolute/index.html shows the output when running rspack with an absolute path for the favicon
    • It will contain <link rel="icon" href="/full_filesystem_path_to_favicon_property" />
    • The favicon will not be in the output folder or any subfolder of it
  • dist/rs/relative/index.html shows the output when running rspack with a relative path for the favicon
    • It will contain <link rel="icon" href="/static\favicon.ico" />
    • The favicon.ico will be located at subfolder static/favicon.ico
  • dist/webpack/absolute/index.html shows the output when running webpack with an absolute path for the favicon
    • It will contain <link rel="icon" href="/favicon.ico">
    • The favicon.ico will will be in this folder
  • dist/webpack/relative/index.html shows the output when running webpack with a relative path for the favicon
    • It will contain <link rel="icon" href="/favicon.ico">
    • The favicon.ico will will be in this folder

About

Test of rspack favicon behavior compared to webpack


Languages

Language:JavaScript 87.3%Language:HTML 9.1%Language:TypeScript 3.6%