Skip to content

Pug and SCSS support. #3234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FieryCod opened this issue Nov 22, 2016 · 7 comments
Closed

Pug and SCSS support. #3234

FieryCod opened this issue Nov 22, 2016 · 7 comments

Comments

@FieryCod
Copy link

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?

@Ionaru
Copy link

Ionaru commented Nov 22, 2016

@FieryCod
Copy link
Author

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

@Ionaru
Copy link

Ionaru commented Nov 23, 2016

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

@filipesilva
Copy link
Contributor

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

@paramsingh88
Copy link

Please, we want Pug support

@svallory
Copy link

svallory commented Jul 28, 2017

@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.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants