浏览代码

viewer, eliminate warnings

Raanan Weber 7 年之前
父节点
当前提交
4ded3bb84c
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 1
      Viewer/webpack.config.js
  2. 2 1
      Viewer/webpack.gulp.config.js

+ 2 - 1
Viewer/webpack.config.js

@@ -26,7 +26,8 @@ module.exports = {
         // until physics will be integrated in the viewer, ignore cannon
         cannon: 'CANNON',
         oimo: 'OIMO',
-        './Oimo': 'OIMO'
+        './Oimo': 'OIMO',
+        "earcut": true
     },
     devtool: 'source-map',
     plugins: [

+ 2 - 1
Viewer/webpack.gulp.config.js

@@ -13,7 +13,8 @@ module.exports = {
         cannon: 'CANNON',
         oimo: 'OIMO',
         vertx: true,
-        "./Oimo": "OIMO"
+        "./Oimo": "OIMO",
+        "earcut": true
     },
     resolve: {
         extensions: ['.ts', '.js'],