Skip to content

appIndex and monorepos #1334

@jimsimon

Description

@jimsimon

I'm trying to use the following config for my app and noticed that the appIndex setting doesn't seem to work when setting rootDir to ../../:

import { esbuildPlugin } from "@web/dev-server-esbuild";
import { fromRollup } from '@web/dev-server-rollup';
import rollupCommonjs from '@rollup/plugin-commonjs';

const commonjs = fromRollup(rollupCommonjs);

export default {
  nodeResolve: true,
  appIndex: `packages/ui/src/index.html`,
  rootDir: '../../',
  debug: true,
  plugins: [
    esbuildPlugin({ ts: true }),
    commonjs({
      include: [
        '../../node_modules/fast-json-stable-stringify/index.js',
        '../../node_modules/zen-observable/**/*'
      ]
    })
  ],
};

I've tried using an absolute path and various relative paths (src/index.html, ../../packages/ui/src/index.html) with no success.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions