Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

relative styleUrls not working on build #371

Closed
andrevcf opened this issue Nov 11, 2016 · 2 comments
Closed

relative styleUrls not working on build #371

andrevcf opened this issue Nov 11, 2016 · 2 comments

Comments

@andrevcf
Copy link

andrevcf commented Nov 11, 2016

Short description of the problem:

My PWA has some pages that is using styleUrls referencing relative path
styleUrls: [ 'assets/plugins/bootstrap/css/bootstrap.min.css', 'assets/css/layout.css', 'assets/css/om.css', 'assets/css/header-1.css', 'assets/css/blue.css', 'https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i', ],

but the build fails with [16:35:06] Error: Compilation failed. Resource file not found [16:35:06] /home/andre/trabalho/projetos/solucioneOnline/app.new/.tmp/landing/assets/plugins/bootstrap/css/bootstrap.min.css [16:35:06] ngc failed [16:35:06] ionic-app-script task: "build" [16:35:06] Error: Error

What behavior are you expecting?

Steps to reproduce:

  1. Use styleUrls with relative path like https://angular.io/docs/ts/latest/guide/component-styles.html#!#using-component-styles
  2. npm run build

Which @ionic/app-scripts version are you using?
0.0.43
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

@andrevcf
Copy link
Author

andrevcf commented Nov 11, 2016

apparently the assets folder needs to be copied to tmp like the .ts but it doesn't get copied

@andrevcf
Copy link
Author

duplicate of #252

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

1 participant