Skip to content

AoT build using preprocessor for CSS #6235

@maxailloud

Description

@maxailloud

Bug Report or Feature Request (mark with an x)

- [x] bug report
- [] feature request

Versions.

@angular/cli: 1.0.0
node: 7.9.0
os: darwin x64
@angular/animations: 4.1.1
@angular/common: 4.1.1
@angular/compiler: 4.1.1
@angular/core: 4.1.1
@angular/forms: 4.1.1
@angular/http: 4.1.1
@angular/material: 2.0.0-beta.3
@angular/platform-browser: 4.1.1
@angular/platform-browser-dynamic: 4.1.1
@angular/platform-server: 4.1.1
@angular/router: 4.1.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.1.1

Repro steps.

Basically just trying to do an AoT build while using sass files in components.
Here is the issue on the angular repository to show you.

Desired functionality.

It's not really a bug, it's more a need of documentation update.
Maybe warn people that using preprocessors for css in their component will make their app not available for AoT build, and will need additional step to build this way.
Except if I miss something, like a specific option or something in angular-cli to handle this case. If that's the case sorry to bother.

And maybe point out a solution for dealing with this case, if there is one already done of course. And I mean in the documentation near the AoT section.

As preprocessors are supported by angular-cli I find it a little bit weird that AoT build doesn't support it. There is a good reason for ngc to not support it, can't do it for every preprocessor that exist, but angular-cli can provide something to bypass this limitation.

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