DEBUG_AFRAME flag to test against local aframe
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
<title>Super Saber</title>
|
||||
<meta name="description" content="Beat Saber on the VR Web with searchable and playable community songs from Beat Saver.">
|
||||
<link rel="shortcut icon" href="assets/img/favicon.png" type="image/x-icon">
|
||||
{% if IS_PRODUCTION %}
|
||||
{% if DEBUG_AFRAME %}
|
||||
<script src="http://{{ HOST }}:9000/dist/aframe-master.js"></script>
|
||||
{% elif IS_PRODUCTION %}
|
||||
<script src="vendor/aframe-master.min.js"></script>
|
||||
{% else %}
|
||||
<script src="vendor/aframe-master.js"></script>
|
||||
|
||||
@@ -10,6 +10,7 @@ var webpack = require('webpack');
|
||||
var nunjucks = Nunjucks.configure(path.resolve(__dirname, 'src'), {
|
||||
noCache: true
|
||||
});
|
||||
nunjucks.addGlobal('DEBUG_AFRAME', !!process.env.DEBUG_AFRAME);
|
||||
nunjucks.addGlobal('DEBUG_KEYBOARD', !!process.env.DEBUG_KEYBOARD);
|
||||
nunjucks.addGlobal('HOST', ip.address());
|
||||
nunjucks.addGlobal('IS_PRODUCTION', process.env.NODE_ENV === 'production');
|
||||
|
||||
Reference in New Issue
Block a user