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

build: bundles design #114

Closed
dsebastien opened this issue Mar 2, 2018 · 4 comments
Closed

build: bundles design #114

dsebastien opened this issue Mar 2, 2018 · 4 comments

Comments

@dsebastien
Copy link
Contributor

Currently we've started from the most recent Angular Starter version. In the webpack common config, two entry points are defined: main & polyfills
-> https://github.com/gdi2290/angular-starter/blob/master/config/webpack.common.js

In our Stark "v1", we had more than that:

  • polyfills: src/polyfills.ts
  • vendor-styles: src/vendor-styles.ts
  • main-styles: src/main-styles.ts
  • vendor: src/vendor.ts
  • main: src/main.ts

This was useful for caching. Now indeed things may be changing with AOT, lazy loading, ...

So we need to decide what to do with our bundles

@dsebastien
Copy link
Contributor Author

  • Document lazy loading of modules
  • Do we need main-style entry point?
  • Do we need vendor and vendor-style entry point?

@ncedric ncedric self-assigned this Mar 12, 2018
@dsebastien dsebastien modified the milestones: 10.0.0-alpha.1, sprint 1 Mar 19, 2018
@dsebastien dsebastien added the P1 label Apr 24, 2018
@dsebastien dsebastien modified the milestones: sprint 1, 10.0.0-alpha.4 May 8, 2018
@SuperITMan SuperITMan self-assigned this Aug 23, 2018
@christophercr christophercr removed this from the 10.0.0-alpha.5 milestone Sep 6, 2018
@christophercr
Copy link
Collaborator

This will be tackled together with #883

christophercr referenced this issue in christophercr/stark Feb 26, 2019
…r-builders

ISSUES CLOSED: #883, #146, #114

BREAKING CHANGE: stark-build now integrates with Angular CLI:

   - **stark-build:** now provides partial Webpack configurations to override default configuration from Angular CLI. The application's `angular.json` file must be adapted to use this partial configs from stark-build via [@angular-builders](https://github.com/meltedspark/angular-builders). See [Stark-Build: Ng CLI Customizations](./docs/stark-build/NG_CLI_BUILD_CUSTOMIZATIONS.md)
   - **stark-core:** the application's `angular.json` file must be adapted to add the assets from stark-core to be copied to the application's `assets` folder. See [Stark-Core: Getting Started](./docs/stark-core/GETTING_STARTED.md#assets)
   - **stark-ui:** the application's `angular.json` file must be adapted to add the assets from stark-ui to be copied to the application's `assets` folder. See [Stark-UI: Getting Started](./docs/stark-ui/GETTING_STARTED.md#assets)
@christophercr
Copy link
Collaborator

Solved in #1148

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

No branches or pull requests

4 participants