24 lines
446 B
JavaScript
24 lines
446 B
JavaScript
'use strict';
|
|
|
|
const webpack = require('webpack');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
|
|
entry: './src/index.js',
|
|
|
|
output: {
|
|
path: path.resolve(__dirname, 'build'),
|
|
publicPath: '/build/',
|
|
filename: 'project.bundle.js'
|
|
},
|
|
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'CANVAS_RENDERER': JSON.stringify(true),
|
|
'WEBGL_RENDERER': JSON.stringify(true)
|
|
})
|
|
]
|
|
|
|
};
|