Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
plugins: [
new HtmlWebpackPlugin({
template: 'src/index.html',
inject: true
new webpack.DefinePlugin({
__CLIENT_ID__: JSON.stringify(process.env.CLIENT_ID || ''),
__REDIRECT_URI__: JSON.stringify(process.env.REDIRECT_URI || 'http://localhost:8080/callback')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment