Skip to content

with-global-stylesheet-simple < multiple files #3239

@andylacko

Description

@andylacko

hello, I am fighting with importing external css into next, its terrible that global stylesheets can not be written in scss 😕 Spent a lot of time trying to solve this. Finally after hours of fighting I decided to go with with-global-stylesheet-simple, but I have one problem, when I am trying to load multiple styles

      <style jsx global>{normalize}</style>
      <style jsx global>{reactSelect}</style>

it only takes first of them and the second is ignored also tried something like this <style jsx global>{normalize + reactSelect}</style> but it throws (shortened) Expected string but got BinaryExpression

any suggestions please? I really like next.js, hope they are working on proper support of including css into project, because working with external libraries without this option is real fight, I know I can evade this by using cdn styles, but it would be duplicity. I can also build devstack only for global stylesheets and then include it from the static folder, but it seems really stupid to me if I have one webpack running already

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions