Skip to content

Instantly share code, notes, and snippets.

💭
Making Stuff

David Boyne boyney123

💭
Making Stuff
Block or report user

Report or block boyney123

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Default configuration for performance-budgets
{
"extends": "lighthouse:full",
"settings": {
"budgets": [
{
"resourceSizes": [
{
"resourceType": "script",
"budget": 50
},
@boyney123
boyney123 / .jsx
Created Mar 4, 2019
Sentry setup example
View .jsx
import React, { Component } from "react";
import logo from "./logo.svg";
import Sentry from "./Sentry";
import ErrorExample from "./ErrorExample";
import "./App.css";
class App extends Component {
render() {
return (
<Sentry url="http://9ad974bebc5545e3aa3dd259f449ac7f@localhost:9000/2">
@boyney123
boyney123 / README-Template.md
Created Mar 23, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View CODEOWNERS
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.
# These owners will be the default owners for everything in the repo.
* @defunkt
# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
# will be requested to review.
*.js @octocat @github/js
View PULL_REQUEST_TEMPLATE.md

Before submitting a pull request, please make sure the following is done:

  1. You have merged in the latest changes from master.
  2. Resolved any conflicts that may have happened from that merge.
  3. Ensure that you have run all tests and linting locally with npm run test and npm run lint.
View ISSUE_TEMPLATE.md
  • I have searched the issues of this repository and believe that this is not a duplicate.
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="/manifest.json">
<link rel="shortcut icon" href="/favicon.ico">
<title>React App</title>
View webpack.config.js
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const DynamicCdnWebpackPlugin = require('dynamic-cdn-webpack-plugin');
module.exports = {
entry: {
'app.js': './src/app.js'
},
View gist:be8de3cdd4aaa91d680c5e755ec179ab
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const DynamicCdnWebpackPlugin = require('dynamic-cdn-webpack-plugin');
module.exports = {
entry: {
'app.js': './src/app.js'
},
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="/manifest.json">
<link rel="shortcut icon" href="/favicon.ico">
<title>React App</title>
You can’t perform that action at this time.