简体   繁体   English

创建一个webpack构建到angular-cli应用程序

[英]Create a webpack build to an angular-cli application

Here where I work, we have the challenge to create a platform using the micro frontends concept, and we decide to give a shot to the Single-SPA framework. 在我工作的地方,我们面临着使用微前端概念创建平台的挑战,我们决定尝试一下Single-SPA框架。

But the setup that I founded, it's necessary the micro app to be an UMD or AMD module, and I try a few times, to create a npm script to build an existing angular-cli project to webpack, but it's was'nt posible. 但是我建立的设置中,微型应用程序必须是UMD或AMD模块,我尝试了几次,以创建一个npm脚本来构建一个现有的angular-cli项目进行webpack,但这是不可能的。

My question is, there is any way to create a webpack build in existing angular-cli generated project? 我的问题是,有什么方法可以在现有的angular-cli生成的项目中创建webpack构建?

Thanks! 谢谢!

If you are using Angular 5 and if the other comment does not help, you might want to go through: https://v5.angular.io/guide/webpack 如果您使用的是Angular 5,并且其他注释没有帮助,则可能需要检查以下内容: https : //v5.angular.io/guide/webpack

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM