2019-12-06 19:12:38 -05:00

17 lines
486 B
JavaScript

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