Skip to content

Instantly share code, notes, and snippets.

View intelliapps-io's full-sized avatar

Intelliapps intelliapps-io

View GitHub Profile
@intelliapps-io
intelliapps-io / simop
Created June 27, 2019 01:05
Useflit Snupp
{
// Place your snippets for typescriptreact here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@intelliapps-io
intelliapps-io / snippits.json
Created January 19, 2019 19:37
VS Code React Snippet
{
"TypeScript React Component Full": {
"prefix": "tsrcf",
"body": [
"import * as React from \"react\";",
"",
"interface IProps {",
"",
"}",
"",
import React, { Component } from "react";
import { compose, graphql } from "react-apollo";
import { withRouter, Link } from "react-router-dom";
import _forOwn from "lodash/forOwn";
import { Row, Col, Form, Button } from "antd";
const FormItem = Form.Item;
import "./eventForm.scss";
import FormItems, { formItemLayout } from "./FormItems";
@intelliapps-io
intelliapps-io / Common.webpack.jk
Created August 1, 2018 01:53
Webpack 4 compression optimizations
const devMode = process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "development_prod";
const path = require("path");
const glob = require("glob-all");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const CompressionPlugin = require("compression-webpack-plugin");
const PurgecssPlugin = require("purgecss-webpack-plugin");
const OptimizeCssAssetsPlugin = require("optimize-css-assets-webpack-plugin");
// const OfflinePlugin = require('offline-plugin');