我开发了一个微前端 UI 应用程序,该应用程序通过npm start
命令在本地运行,但现在我想部署它,因为我需要使用 build 命令发布它,当我尝试运行时npm build --prod
,npm build
它不会抛出任何错误,但我没有看到在我的应用程序根文件夹中创建任何 dist 文件夹。下面是我的 package.json 和应用程序结构:
{
"name": "root-html-file",
"description": "The single-spa root config for coexisting-angular-microfrontends",
"main": "index.js",
"scripts": {
"start": "serve -s -l 4200",
},
"author": "Joel Denning",
"license": "MIT",
"devDependencies": {
"serve": "^11.1.0"
},
"dependencies": {}
}