move main.js outside of src folder
This commit is contained in:
parent
0a272e37c6
commit
e96f50d187
@ -9,6 +9,14 @@ this is an experiment for the web browser. it corrupts jpg images so that they a
|
||||
|
||||
this experiment is very much based on the [smack my glitch up js](https://github.com/Hugosslade/smackmyglitchupjs) script.
|
||||
|
||||
minification / build
|
||||
---
|
||||
the [requirejs optimizer](http://requirejs.org/docs/optimization.html) is used to minify both javascript and css files.
|
||||
|
||||
to minify javascript, run ```r.js -o name=main out=main.min.js``` in the terminal from the ```scripts``` folder.
|
||||
|
||||
to minify css, run ```r.js -o cssIn=global.css out=global.min.css optimizeCss=default``` from the ```styles``` folder.
|
||||
|
||||
third party code used in this experiment
|
||||
---
|
||||
* [html5slider](http://frankyan.com/labs/html5slider/) by [fryn](https://github.com/fryn), MIT license
|
||||
|
||||
@ -34,6 +34,6 @@
|
||||
<a id="png-button" download="glitched-image.png" target="_blank" class="download-link">download bitmap file<span> (.png)</span></a>
|
||||
</div>
|
||||
<canvas id="canvas"></canvas>
|
||||
<script src="scripts/lib/require-2.1.4.js" data-main="scripts/src/main"></script>
|
||||
<script src="scripts/lib/require-2.1.4.js" data-main="scripts/main"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
2
scripts/lib/require.min.js
vendored
Normal file
2
scripts/lib/require.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user