mirror of
https://github.com/WhitestormJS/whs.js.git
synced 2026-01-25 16:08:01 +00:00
16 lines
495 B
JavaScript
16 lines
495 B
JavaScript
export const getTemplateData = ({devPhysics = false, devMode = false} = {devPhysics: false, devMode: false}) => ({
|
|
scriptname: 'bundle.js',
|
|
assets: '\'../../assets\'',
|
|
devMode,
|
|
|
|
physicsModule: devPhysics > 0
|
|
? `http://localhost:${devPhysics}/physics-module.js`
|
|
: '../../assets/physics-module.js',
|
|
|
|
ammojs: devPhysics > 0
|
|
? `'http://localhost:${devPhysics}/vendor/ammo.js'`
|
|
: 'window.location.href + \'../../assets/ammo.js\''
|
|
});
|
|
|
|
export const examples = '../examples';
|