Skip to content

Commit fadc851

Browse files
author
Jarrod Overson
committed
added build and dev index
1 parent 27573f5 commit fadc851

File tree

4 files changed

+161
-1
lines changed

4 files changed

+161
-1
lines changed

app.build.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
({
3+
baseUrl: "js/",
4+
mainConfigFile: 'js/main.js',
5+
out: "js/main.built.js",
6+
include : 'main',
7+
8+
optimize: "uglify",
9+
10+
uglify: {
11+
toplevel: true,
12+
ascii_only: true,
13+
beautify: false,
14+
max_line_length: 1000
15+
},
16+
17+
inlineText: true,
18+
useStrict: false,
19+
20+
skipPragmas: false,
21+
skipModuleInsertion: false,
22+
stubModules: ['text'],
23+
optimizeAllPluginResources: false,
24+
findNestedDependencies: false,
25+
removeCombined: false,
26+
27+
fileExclusionRegExp: /^\./,
28+
29+
preserveLicenseComments: true,
30+
31+
logLevel: 0
32+
})

index-dev.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>JavaScript Particle System</title>
5+
<script src="js/vendor/require.js" data-main="js/main"></script>
6+
<style>
7+
body,html {
8+
margin:0;
9+
padding:0;
10+
}
11+
canvas {
12+
background-color: black;
13+
}
14+
</style>
15+
</head>
16+
<body>
17+
<a href="https://github.com/jsoverson/JavaScript-Particle-System"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>
18+
<canvas id="canvas"></canvas>
19+
</body>
20+
</html>

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>JavaScript Particle System</title>
5-
<script src="js/vendor/require.js" data-main="js/main"></script>
5+
<script src="js/vendor/require.js" data-main="js/main.built.js"></script>
66
<style>
77
body,html {
88
margin:0;

0 commit comments

Comments
 (0)