mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-20 10:19:07 -04:00
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:
commit
51e17c57a9
25 changed files with 598 additions and 0 deletions
35
webpack.config.js
Normal file
35
webpack.config.js
Normal 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
|
||||
}
|
||||
})
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue