These are chat archives for AngularClass/angular2-webpack-starter

20th
Jun 2016
Valentin Konusov
@BioSin
Jun 20 2016 04:24
Hi everyone, where would be better to add new router config?
As platform provider, or application provider?
Sabbir Rahman
@sabbirrahman
Jun 20 2016 10:23
Hello everyone, can someone help me on how to integrate angular-universal with a project developed with this starter?
leNic
@leNicDev
Jun 20 2016 11:50
@Luchillo If I'm using the css-loader, my pages are completely unstyled (no errors)
Al Knows
@al_knows_twitter
Jun 20 2016 12:37
how do you guys clone the material2 branch?
it doesnt list in "git branch -r"
Carlos Esteban Lopez Jaramillo
@luchillo17
Jun 20 2016 12:59

@leNicDev Sorry man, i just jump in without seeing what's the context, how are you calling your styles? like this?:

require('path/to/style.css')

Or in a component?:

@Component({
  templateUrl: '...',
  styles: [ require('path/to/style.css') ]
})
If the first is true, you need to use the style-loader to inline the styles into your js.
If the second is true, you need to use raw loader because the styles property of component only accepts an array of strings.
Carlos Esteban Lopez Jaramillo
@luchillo17
Jun 20 2016 13:27
For example i have 1 require that uses the style-loader for the theme css file (with the imports for different lib css files and app-wide styles) and one for each component with the raw-loader.
Carlos Esteban Lopez Jaramillo
@luchillo17
Jun 20 2016 13:35

Hi all, i'm about to start trying to implement both Angular-universal and Static Template Compilation.

Any idea where to start? any recommendations?

Bnaya Peretz
@Bnaya
Jun 20 2016 19:00
Dose this starter has any server side rendering capabilities?
Carlos Esteban Lopez Jaramillo
@luchillo17
Jun 20 2016 19:03
You mean Angular Universal?
Bnaya Peretz
@Bnaya
Jun 20 2016 19:06
yeah i thnik so
Carlos Esteban Lopez Jaramillo
@luchillo17
Jun 20 2016 19:09
I have a fork and as far as i can tell there's no Angular Universal involved, at least not yet since the repo's server side is webpack-dev-server in dev and http-server in prod, for Angular universal to kick in it needs some config that i don't see anywhere in the repo.