luma.gl/examples/wip/postprocessing/webpack.config.js
2018-07-28 16:28:39 -07:00

18 lines
426 B
JavaScript

const {resolve} = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CONFIG = {
mode: 'development',
entry: {
app: resolve('./app.js')
},
plugins: [
new HtmlWebpackPlugin({title: 'Instancing'})
]
};
// This line enables bundling against src in this repo rather than installed module
module.exports = env => env ? require('../../webpack.config.local')(CONFIG)(env) : CONFIG;