Skip to content

Pug and SCSS support. #3234

Closed
Closed

Description

@kwojcik-blockether

I saw that there were a lot of discussions about the Pug and Scss official support. As I know the proper poor request was merged to a repo. Still we do not know how to configure angular-cli to generate .pug and .scss file. Can someone help me with it?

Activity

  1. Ionaru commented on Nov 22, 2016

    @Ionaru
  2. kwojcik-blockether commented on Nov 22, 2016

    @kwojcik-blockether
    Author

    Thanks I found your link very helpful. What about Pug support?

  3. Ionaru commented on Nov 23, 2016

    @Ionaru

    As far as I know Jade/Pug support is not currently being worked on by the Angular team, however another contributor has started to work this feature.

    See PR #2205 and issue #1886

  4. filipesilva commented on Dec 22, 2016

    @filipesilva
    Contributor

    As @Ionaru says, we do have scss support and jade support is being tracked in #1886.

  5. paramsingh88 commented on Jun 5, 2017

    @paramsingh88

    Please, we want Pug support

  6. svallory commented on Jul 28, 2017

    @svallory

    @paramsingh88 @FieryCod I made a pull request to allow tweaking webpack config with a file in the project root. For now, you can use the cli at https://github.com/cashfarm/angular-advanced-cli (branch 1.2.x)

    Install pug, pug-ng-html-loader and add a webpack.config.js with this to root of your project:

    module.exports = {
      module: {
        rules: [
          {
            test: /\.(pug|jade)$/,
            use: ['pug-ng-html-loader']
          }
        ]
      }
    }
    

    Then your components can use pug

    @Component({
      selector: 'app-root',
      templateUrl: './app.component.pug',
      styleUrls: ['./app.component.styl']
    })
    

    But your index has to stay in html.

  7. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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