Establish initial structure, create demo.html

So far this does nothing but clear the screen to magenta, but it's a
start.
This commit is contained in:
Christopher Willis-Ford 2016-05-13 10:48:45 -07:00
commit 51e17c57a9
25 changed files with 598 additions and 0 deletions

35
webpack.config.js Normal file
View file

@ -0,0 +1,35 @@
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: {
'render-webgl': './src/index.js',
'render-webgl.min': './src/index.js'
},
devtool: 'source-map',
output: {
path: __dirname,
filename: '[name].js'
},
module: {
loaders: [
{
test: /\.json$/,
loader: 'json-loader'
},
{
test: /\.(glsl|vs|fs|frag|vert)$/,
loader: 'raw-loader' // we might want a GLSL loader if we use includes
}
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
minimize: true,
compress: {
warnings: false
}
})
]
};