Skip to content
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

about the universal server #7

Open
z827101859 opened this issue Mar 8, 2017 · 3 comments
Open

about the universal server #7

z827101859 opened this issue Mar 8, 2017 · 3 comments

Comments

@z827101859
Copy link

in ./src/main.server.ts,why do you import AppServerModuleNgFactory but not AppServerModule ?

if I use import AppServerModule ,will it be replaced with AppServerModuleNgFactory by some tools automatically?

@AntoineViau
Copy link

AntoineViau commented Mar 8, 2017

Yes, AppServerModuleNgFactory is generated by the AOT compilation. You have to use ngc to produce the factories. These factories will build module, components and other stuff. See package.json in my fork of this project.

@z827101859
Copy link
Author

@AntoineViau
in my project ,I use sass,like this:

@Component({
    selector: 'detail',
    templateUrl: './detail.component.html',
    styleUrls: ['./detail.component.scss']
})
export class DetailComponent {
    ...
}

if I use ngc to produce the factories,it will not process scss files and images.

@MarkPieszak
Copy link

You need to put in your scss loaders and such in the webpack config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants