scratch-render/webpack.config.js
Christopher Willis-Ford 51e17c57a9 Establish initial structure, create demo.html
So far this does nothing but clear the screen to magenta, but it's a
start.
2016-05-13 11:29:51 -07:00

35 lines
822 B
JavaScript

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
}
})
]
};