'use strict';

const webpack = require('webpack'); const path = require('path');

module.exports = {

entry: './app/index.js',

mode: 'production',

output: {
    publicPath: '/assets/',
    filename: 'eva.js'
},

module: {
    rules: [
      {
        test: [ /\.vert$/, /\.frag$/ ],
        use: 'raw-loader'
      }
    ]
},

plugins: [
    new webpack.DefinePlugin({
        'CANVAS_RENDERER': JSON.stringify(true),
        'WEBGL_RENDERER': JSON.stringify(true)
    })
]

};