webpack打包:npm install ;出现 “ document is not defined ” 错误 解决方法:查找 index.art 页面是否引入了 " <script> " 标签,删除即可 例如: