相关疑难解决方法(0)

使用Webpack将Angular 2 App部署到Tomcat - 404错误

我想构建我的Angular 2前端并将其部署到Tomcat应用程序服务器.为了开始,我完全按照以下介绍的步骤进行操作:https://angular.io/docs/ts/latest/guide/webpack.html.

所以我有以下项目结构(所有文件都与上面提到的引言完全相同):

angular2-webpack
--- config
------- helpers.js
------- karma.conf.js
------- karma-test-shim.js
------- webpack.common.js
------- webpack.dev.js
------- webpack.prod.js
------- webpack.test.js
--- dist
--- node_modules
- --public
------- css
-------------- styles.css
------- images
-------------- angular.png
--- src
------- app
-------------- app.component.css
-------------- app. component.html
-------------- app.component.spec.ts
-------------- app.component.ts
------- ------- app.module.ts
------- index.html
------- main.ts
------- polyfills.ts
------- vendor .ts
---
typings --- karma.conf.js
--- package.json
--- tsconfig.json
--- typings.json
--- webpack.config.js

npm分别webpack-dev-server --inline --progress …

tomcat http-status-code-404 webpack angular

11
推荐指数
2
解决办法
2万
查看次数

标签 统计

angular ×1

http-status-code-404 ×1

tomcat ×1

webpack ×1