Skip to content

Instantly share code, notes, and snippets.

@Adam-Meisen
Last active September 15, 2016 20:19
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 Adam-Meisen/db219b1815633400844b350788a11a6e to your computer and use it in GitHub Desktop.
Save Adam-Meisen/db219b1815633400844b350788a11a6e to your computer and use it in GitHub Desktop.
Test package to illustrate GLSLifyerror in Pixi.js
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<script type="text/javascript" src="main.js" charset="utf-8"></script>
</body>
</html>
var PIXI = require('pixi.js');
var renderer = new PIXI.WebGLRenderer(256, 256);
document.body.appendChild(renderer.view);
{
"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"
}
}
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