Skip to content

Instantly share code, notes, and snippets.

import * as cdk from "aws-cdk-lib";
import {CfnUserPoolUserToGroupAttachment, IUserPool} from "@aws-cdk/aws-cognito";
import {AwsCustomResource, AwsCustomResourcePolicy, PhysicalResourceId} from "@aws-cdk/custom-resources";
export class UserPoolUser extends cdk.Stack {
constructor(scope: cdk.App, id: string, props: {
userPool: IUserPool,
username: string,
password: string,
@hindmost
hindmost / cra-browserext-boilerplate-config-overrides-result.js
Created April 22, 2020 19:17
cra-browserext-boilerplate: config-overrides.js - result
const paths = require('react-scripts/config/paths');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
// Export function to override the CRA webpack config
module.exports = function override(config, env) {
// Replace single entry point in the config with multiple ones
// Note: you may remove any property below except "popup" to exclude respective entry point from compilation
config.entry = {