Skip to content

How to Add Global CSS for All Modules in Development Server #96

@jason-rosterlab

Description

@jason-rosterlab

I’m looking for a way to add global CSS that applies to all modules in dev server (@hubspot/cms-dev-server), accessible at http://hslocal.net:3000/.

The global CSS should only be applied in the development server environment and not affect the deployed HubSpot modules. Specifically, I’d like to know:

  • How to import a CSS file (e.g., global.css) to be applied globally across all modules during development.
  • Where the entry point (e.g., App.js or index.js) of the dev server can be located. I've searched for this entry point in the dev server setup but have not been able to find it, which makes it unclear where global styles can be included.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions