2018-04-18 18:00:03 -07:00

18 lines
434 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: 'Transform Feedback'})
]
};
// This line enables bundling against src in this repo rather than installed module
module.exports = env => env ? require('../../webpack.config.local')(CONFIG)(env) : CONFIG;