javascript - Angular 4: How to create reusable module with component - bundle -


i'm trying create angular ui-component, , use in other angular applications.

i met many problem angular-cli , decided rid project, since not ready building library. tried use webpack, had problem building d.ts bundle(i used dts-bundle, can't build bundle imports well).

when created d.ts bundle manually, realized project use webpack don't work correctly bundly built webpack (a lot of errors third party, module resolution, polyfills).

when build project typescript, worked well, angular templated (app.component.html), don't want include in package. best way, think, manage use angular-template-loader typescribt compiler, don't know how.

may there better approach it, read lot of topics , have't figured yet. thank you.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -