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

Using build(opts) API, compilation.input not work. #1265

Open
yejimeiming opened this issue Apr 29, 2024 · 0 comments
Open

Using build(opts) API, compilation.input not work. #1265

yejimeiming opened this issue Apr 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yejimeiming
Copy link
Contributor

Steps to reproduce

import { build } from '@farmfe/core';

build({
  compilation: {
    input: {
      main: 'electron/main.ts',
    },
  },
});

What is expected?

Output an named main.js file to dist folder.

What is actually happening?

Always output index.html to the dist.

System Info

System:
    OS: macOS 12.2.1
    CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
    Memory: 83.40 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 18.20.2 - /usr/local/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 10.5.0 - /usr/local/bin/npm
    pnpm: 8.14.3 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 124.0.6367.92
    Safari: 15.3
  npmPackages:
    @farmfe/core: ^1.1.1 => 1.1.2

Any additional comments?

I'll fix it in my next PR.

yejimeiming added a commit to yejimeiming/farm that referenced this issue Apr 29, 2024
@ErKeLost ErKeLost added the bug Something isn't working label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants