Skip to content

Instantly share code, notes, and snippets.

@anodynos
Created October 6, 2012 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anodynos/3844692 to your computer and use it in GitHub Desktop.
Save anodynos/3844692 to your computer and use it in GitHub Desktop.
uRequire 0.1.0 XCSSMatrix example
<!--
1) correct cssTransformStringUtils
angles: require('./angleUtils') // without .js
2) grunt.js : add urequire support
shell:{
...
urequire: {
command: 'urequire UMD lib -o distUMD',
stdout: true
}
..}
3) hit `grunt shell:urequire`
4) copy following html to distUMD
5) hit the html in a browser (NOTE: from a http://, NOT file://, requirejs doesn't work from file://)
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>uRequire 0.1.0 XCSSMatrix example</title>
<script src="http://requirejs.org/docs/release/2.1.0/minified/require.js"></script>
<script>
require(['XCSSMatrix'], function(XCSSMatrix) {
console.log('Got module XCSSMatrix=', XCSSMatrix);
//use it as you know
});
</script>
</head>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment