Skip to content

Commit

Permalink
updated demo pathseg
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jan 12, 2021
1 parent a694ae5 commit 9c5325b
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 44 deletions.
2 changes: 1 addition & 1 deletion demo/lib/pathseg.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,4 +846,4 @@
return builder.pathSegList;
}
}
}());
}());
80 changes: 40 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"jest-worker": "^24.9.0",
"json-stringify-pretty-compact": "^2.0.0",
"matter-tools": "^0.12.2",
"pathseg": "^1.2.0",
"puppeteer-core": "^5.5.0",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.11",
Expand Down
11 changes: 8 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ License ${pkg.license}${!minimize ? '\n\n' + license : ''}`;
contentBase: [
path.resolve(__dirname, './demo'),
path.resolve(__dirname, './examples'),
path.resolve(__dirname, './node_modules/matter-tools/build/')
path.resolve(__dirname, './node_modules/matter-tools/build'),
path.resolve(__dirname, './node_modules/pathseg')
],
open: true,
openPage: '',
Expand All @@ -81,11 +82,15 @@ License ${pkg.license}${!minimize ? '\n\n' + license : ''}`;
},
'/lib/matter-tools.inspector.js': {
target: 'http://localhost:8000/',
pathRewrite: { '^/lib/matter-tools.inspector.js' : 'matter-tools.inspector.js' }
pathRewrite: { '^/lib/matter-tools.inspector.js' : '/matter-tools.inspector.js' }
},
'/lib/matter-tools.gui.js': {
target: 'http://localhost:8000/',
pathRewrite: { '^/lib/matter-tools.gui.js' : 'matter-tools.gui.js' }
pathRewrite: { '^/lib/matter-tools.gui.js' : '/matter-tools.gui.js' }
},
'/lib/pathseg.js': {
target: 'http://localhost:8000/',
pathRewrite: { '^/lib/pathseg.js' : '/pathseg.js' }
}
}
}
Expand Down

0 comments on commit 9c5325b

Please sign in to comment.