伪造应用程序中的 Webpack 和 three.js
Webpack and three.js in forge applications
我对新的查看器版本 7 和 three.js 的加入感到有些吃力。根据
https://forge.autodesk.com/blog/webpack-and-threejs-forge-applications
有必要将three.js定义为外部。但是我到底应该在哪里做呢?查看器嵌入在 Angular 环境中。
不要在 package.json 中添加 THREE 作为依赖项并使用由查看器加载的 THREE 全局。如果您只需要三种类型:(https://www.npmjs.com/package/@types/forge-viewer)
我对新的查看器版本 7 和 three.js 的加入感到有些吃力。根据
https://forge.autodesk.com/blog/webpack-and-threejs-forge-applications
有必要将three.js定义为外部。但是我到底应该在哪里做呢?查看器嵌入在 Angular 环境中。
不要在 package.json 中添加 THREE 作为依赖项并使用由查看器加载的 THREE 全局。如果您只需要三种类型:(https://www.npmjs.com/package/@types/forge-viewer)