我将Orchard主题应用为角度6。
Themes/MyTheme/Scripts
Themes/MyTheme/Scripts
assets
推送到Themes/MyTheme/assets
index.html
重命名为Document.cshtml
推送到/View
|- Themes |-- MyTheme |--- assets/ |--- Styles/ |---- styles.css |--- Scripts/ |---- main.js |---- polyfills.js |---- runtime.js |---- scripts.js |--- Views/ |---- Document.cshtml -> index.html
检查Chrome中的元素:
http://localhost:4200/Themes/MyTheme/Script/main.js http://localhost:4200/Themes/MyTheme/Script/polyfills.js http://localhost:4200/Themes/MyTheme/Script/runtime.js http://localhost:4200/Themes/MyTheme/Script/scripts.js http://localhost:4200/Themes/MyTheme/Styles/scripts.js
我尝试通过命令ng serve --prod --deploy /Themes/MyThemes/
进行构建时处理url,但是运行时块文件0.js ...
(惰性加载模块)的URL继续从root url
加载。
大块文件:
运行到后如何处理块文件的URL:
http://localhost:4200/Themes/MyThems/Scripts/0.js
或者如何配置路由器Orchard从根URL读取文件0.js。