Skip to content

fix(linter): tslint always exits nicely #974

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
wants to merge 1 commit into from

Conversation

cexbrayat
Copy link
Member

This uses the --force flag of tslint to always exit the command in success,
even if violations are detected. It changes the current behaviour where the command
exits in error. See https://github.com/palantir/tslint#usage

Fixes #967

This uses the `--force` flag of tslint to always exit the command in success,
even if violations are detected. It changes the current behaviour where the command
exits in error. See https://github.com/palantir/tslint#usage

Fixes angular#967
@filipesilva
Copy link
Contributor

Closed as per #967 (comment)

@filipesilva filipesilva closed this Jun 2, 2016
@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 10, 2019
clydin pushed a commit to clydin/angular-cli that referenced this pull request Aug 29, 2023
This is another feature that we mentioned in the Eliminate Render Blocking Requests RFC (angular#18730)

**Prerendering**
To enable critical css inlining for prerendering set the `inlineCritical` to true under the Browser Builder options.

Example:
```json
"configurations": {
  "production": {
    "fileReplacements": [
      {
        "replace": "src/environments/environment.ts",
        "with": "src/environments/environment.prod.ts"
      }
    ],
    "optimization": {
      "styles": {
        "minify": true,
        "inlineCritical": true,
       }
    },
```

**Express Engine**
Update server.ts
```ts
  server.engine('html', ngExpressEngine({
    bootstrap: AppServerModule,
    inlineCriticalCss: true,
  }));
```

**Hapi Engine**
Update server.ts
```ts
  server.route({
    method: 'GET',
    path: '/{path*}',
    handler: (req: Request) => ngHapiEngine({
      bootstrap: AppServerModule,
      documentFilePath,
      publicPath: distFolder,
      inlineCriticalCss: true,
      req,
    })
  });
```

Inlining of critical CSS is turned off by default. In a future versions of the Angular CLI and Universal inline critical CSS will be enabled by default.

Closes angular#974
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

npm run lint exits in error
2 participants