systemjs-builder

Build production on SystemJS with systemjs-builder

こ雲淡風輕ζ 提交于 2019-12-25 09:10:56
问题 I have my project that use SystemJS (i use a template that comes on this way). I need to build the final project to production env. I read that i can use systemjs-builder for this. I read the official page: https://github.com/systemjs/builder. Sorry, i'm so new on Angular 2! I don't understand how to start. For example, this part: Basic Use Ensure that the transpiler is installed separately (npm install babel-core here). var path = require("path"); var Builder = require('systemjs-builder'); /

Build production on SystemJS with systemjs-builder

回眸只為那壹抹淺笑 提交于 2019-12-25 09:07:09
问题 I have my project that use SystemJS (i use a template that comes on this way). I need to build the final project to production env. I read that i can use systemjs-builder for this. I read the official page: https://github.com/systemjs/builder. Sorry, i'm so new on Angular 2! I don't understand how to start. For example, this part: Basic Use Ensure that the transpiler is installed separately (npm install babel-core here). var path = require("path"); var Builder = require('systemjs-builder'); /

Angular2 lazy loading modules: how to create a build package with SystemJS Builder?

﹥>﹥吖頭↗ 提交于 2019-12-22 04:17:11
问题 i'm using Angular2 and SystemJS to create a web application. I have some modules in my app and in the router configuration i use lazy loading to open them. Here is a routing file of my app that lazy loads two modules: const appRoutes: Routes = [ { path: '', component: MainComponent, canActivate: [AuthGuard], children: [ { path: 'dashboard', component: DashboardComponent }, { path: 'first-section', loadChildren: 'app/modules/FIRST-SECTION/first-section.module' }, { path: 'second-section',

SystemJs Ignores Angular Dependency Bundle

谁说我不能喝 提交于 2019-12-12 05:59:29
问题 I am trying to get my angular application to the point where it is ready for distribution and I have managed to create 2 bundles, one for my angular application and one for my dependencies ( which include the angular framework and the rxjs framework ). I am using systemjs builder to do the bundling and using gulp to run the builder. Both bundles are produced and my custom bundle (which contains my code) is loaded by the front end but the vendor/dependency bundle is ignored and the

Angular2 lazy loading modules: how to create a build package with SystemJS Builder?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 03:45:02
i'm using Angular2 and SystemJS to create a web application. I have some modules in my app and in the router configuration i use lazy loading to open them. Here is a routing file of my app that lazy loads two modules: const appRoutes: Routes = [ { path: '', component: MainComponent, canActivate: [AuthGuard], children: [ { path: 'dashboard', component: DashboardComponent }, { path: 'first-section', loadChildren: 'app/modules/FIRST-SECTION/first-section.module' }, { path: 'second-section', loadChildren: 'app/modules/SECOND-SECTION/second-section.module' }, { path: 'documents', component:

Build Angular2 HTML and TypeScript to a single file

偶尔善良 提交于 2019-11-27 03:35:44
I'm putting together an app (Large scale) using Angular2 and TypeScript. It will need to be divided into numerous projects and each project will have numerous components each with a .html view, .css stylesheet and .ts logic / class. I would like each project to compile to a single *.js file and be copied to a host website which will run in IIS. This would be similar to how a WPF or Silverlight app is built with the .xaml files all getting compiled into the .dll . I've had a look around the web and am able to get the .ts files to build to a single .js file using the --outFile option. But this

Build Angular2 HTML and TypeScript to a single file

耗尽温柔 提交于 2019-11-26 10:34:27
问题 I\'m putting together an app (Large scale) using Angular2 and TypeScript. It will need to be divided into numerous projects and each project will have numerous components each with a .html view, .css stylesheet and .ts logic / class. I would like each project to compile to a single *.js file and be copied to a host website which will run in IIS. This would be similar to how a WPF or Silverlight app is built with the .xaml files all getting compiled into the .dll . I\'ve had a look around the