Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Require css on server side not working #564

@crebuh

Description

@crebuh
  • I'm submitting a ...
  • [ x] support request
  • What modules are related to this Issue?
  • [x ] express-engine
  • [x ] universal
  • What is the current behavior?

In my main.browser.ts I'm requiring an external css file with:

 require('!style!css!../../libs/wp-frontend-libs/start-ui/build/css/separate/partials/base.css');

It works fine in the styles are inlined. When I want to include the css already in the server rendering process (require in main.node.ts or globally in my app.ts), the build process crashes with the message:

 Cannot find module '!style!css!../../libs/wp-frontend-libs/start-ui/build/css/separate/partials/base.css

Any hints on that? Do I have to use another loader in the server environment?

  • Please tell us about your environment:
  • Angular version: 2.0.0
  • OS: [all Linux ]
  • Platform: [NodeJs ]

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