[英]VanillaJs with Webpack, can't load bundle.js in index.html after build
[英]Can't launch localhost after index.html and path is changed
我的本地主机没有启动。 我将index.html更改为index.php,然后还更改了angular.json中的启动路径
"options": {
"outputPath": "dist/webas",
"index": "src/index.php",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
ng serve -o
后无法访问/打开我的localhost http://localhost:4200/
我正在使用VScode,angular7
PLZ编辑index
,以"index": "src/index.html"
如果你想在PHP服务器上运行它,你可以运行ng build --prod
和dist文件夹复制到xampp/htdocs
,然后打开它(在这里你应该重命名index.html
到index.php
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.