mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
17 lines
480 B
JavaScript
17 lines
480 B
JavaScript
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
const {resolve} = require('path');
|
|
|
|
const CONFIG = {
|
|
mode: 'development',
|
|
|
|
entry: {
|
|
app: resolve('./app.js')
|
|
},
|
|
|
|
plugins: [new HtmlWebpackPlugin({title: 'Lighting'})]
|
|
};
|
|
|
|
// This line enables bundling against src in this repo rather than installed module
|
|
module.exports = env => (env ? require('../../webpack.config.local')(CONFIG)(env) : CONFIG);
|