Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: Farm ignores files in input file #1923

Open
Micnubinub opened this issue Nov 6, 2024 · 0 comments
Open

[Bug Report]: Farm ignores files in input file #1923

Micnubinub opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement New feature or request v2.0 v2.0 version

Comments

@Micnubinub
Copy link

Steps to reproduce

farm build

Reproduce link

No response

What is actually happening?

Farm is ignoring the link and img srcs in the input index.html. Here are the inputs and outputs:
*Note live server works just fine because the relative path is valid, am I missing something?

<!doctype html>
<html lang="en">
<head>
  <base href="/"/>
  <link href="./src/assets/img/favicon.png" rel="icon" type="image/png"/>
  <meta charset="UTF-8"/>
  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
  <meta content="index, archive" name="robots"/>
  <meta content="..."/>
  <title>...</title>
</head>
<body>
<div style="..." id="root">
  <img style="..." src='./src/assets/img/logo_black.svg' alt='logo' />
</div>
<script src="./src/main.tsx" type="module"></script>
</body>
</html>

Compiles everything child in the script tag and leaves the items in the root not compiled
image

System Info

System:
    OS: macOS 15.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 66.16 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.1.0 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.9.0 - /opt/homebrew/bin/npm
    bun: 1.1.34 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 130.0.6723.117
    Edge: 130.0.2849.68
    Safari: 18.1
  npmPackages:
    @farmfe/core: 1.3.32 => 1.3.32
@wre232114 wre232114 added enhancement New feature or request v2.0 v2.0 version labels Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v2.0 v2.0 version
Projects
None yet
Development

No branches or pull requests

2 participants