Skip to content

Commit

Permalink
Include cdn three for build
Browse files Browse the repository at this point in the history
  • Loading branch information
milcktoast committed Sep 29, 2014
1 parent a8bd162 commit 2819ae1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion grunt/config/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module.exports = function (config) {
},
develop: {
expand: true,
src: [config.source + 'scss/**/*.scss'],
src: [
config.source + 'scss/**/*.scss',
config.source + 'lib/**/*.js'
],
dest: config.deploy
}
};
Expand Down
2 changes: 2 additions & 0 deletions pages/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<body>
<div id="container"></div>
{% if TEMPLATE_DEBUG %}
<script src="{{ STATIC_URL }}lib/three/three.js"></script>
<script src="{{ STATIC_URL }}js/libs.develop.js"></script>
<script src="{{ STATIC_URL }}js/app.develop.js"></script>
{# Run tests by appending ?test=true to the url #}
Expand All @@ -30,6 +31,7 @@
}
</script>
{% else %}
<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r67/three.min.js"></script>
<script src="{{ STATIC_URL }}js/libs.min.js"></script>
<script src="{{ STATIC_URL }}js/app.min.js"></script>
{% endif %}
Expand Down
1 change: 0 additions & 1 deletion static/js/libs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
require('lib/three/three');
require('lib/three/examples/js/controls/TrackballControls');
require('lib/particulate/dist/particulate');

0 comments on commit 2819ae1

Please sign in to comment.