Created
October 6, 2012 11:38
-
-
Save anodynos/3844692 to your computer and use it in GitHub Desktop.
uRequire 0.1.0 XCSSMatrix example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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