Last active
September 15, 2016 20:19
-
-
Save Adam-Meisen/db219b1815633400844b350788a11a6e to your computer and use it in GitHub Desktop.
Test package to illustrate GLSLifyerror in Pixi.js
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
</head> | |
<body> | |
<script type="text/javascript" src="main.js" charset="utf-8"></script> | |
</body> | |
</html> |
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
var PIXI = require('pixi.js'); | |
var renderer = new PIXI.WebGLRenderer(256, 256); | |
document.body.appendChild(renderer.view); |
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
{ | |
"name": "pixitest", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"browserify-versionify": "^1.0.6", | |
"glslify": "^5.1.0", | |
"ify-loader": "^1.0.3", | |
"pixi.js": "^4.0.1", | |
"webpack": "^1.13.2", | |
"webpack-dev-server": "^1.15.1" | |
} | |
} |
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
var webpack = require('webpack'); | |
module.exports = { | |
entry: './index.js', | |
output: { | |
filename: '[name].js' | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /node_modules\/pixi\.js/, | |
loader: 'ify' | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment