Skip to content

CDN Styles/ Scripts in .angular-cli.json configuration #6887

@9442552055

Description

@9442552055

Bug Report or Feature Request (mark with an x)

- [ ] bug report 
- [ x] feature request

Versions.

@angular/cli: 1.1.2
node: 8.0.0
os: win32 x64
npm: 5.0.0

Repro steps.

STEP 1: create a angular 2 project with angular cli
STEP 2: In .angular-cli.json add any CDN path to styles or scripts as well
STEP 3: run ng build command.

The log given by the failure.

ERROR in multi ./src/styles.css .//@angular/material/prebuilt-themes/indigo-pink.css ./src/https:/fonts.googleapis.com/icon?fami
ly=Material+Icons
Module not found: Error: Can't resolve 'D:\WEB_POC\angular2cli\rentals\src\https:\fonts.googleapis.com\icon?family=Material+Icons
' in 'D:\WEB_POC\angular2cli\rentals\node_modules@angular\cli\models\webpack-configs'
@ multi ./src/styles.css ./
/@angular/material/prebuilt-themes/indigo-pink.css ./src/https:/fonts.googleapis.com/icon?family=Mat
erial+Icons

Desired functionality.

To add CDN paths in global scripts or styles, which we are getting error due to path.resolve

Mention any other details that might be useful.

Metadata

Metadata

Assignees

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