Skip to content

Instantly share code, notes, and snippets.

View allizad's full-sized avatar
💭
I may be slow to respond.

Allison Zadrozny allizad

💭
I may be slow to respond.
View GitHub Profile
webpack --progress -p
=>
Hash: fe8896271ca2577ab0e3
Version: webpack 1.13.0
Time: 12639ms
Asset Size Chunks Chunk Names
bundle.js 702 kB 0 [emitted] main
bundle.js.map 350 bytes 0 [emitted] main
+ 792 hidden modules
@allizad
allizad / curl
Created February 21, 2017 17:17
$ webpack
=>
Hash: 712af6bbeb12ca56b19e
Version: webpack 1.13.0
Time: 3965ms
Asset Size Chunks Chunk Names
bundle.js 2.89 MB 0 [emitted] main
+ 800 hidden modules
"dependencies": {
"webpack": "^1.13.1",
"babel-core": "^6.8.0",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"react": "^15.0.2",
"react-dom": "^15.0.2",
"react-addons-update": "^15.0.2"
}
module.exports = {
// webpack folder's entry js - excluded from jekll's build process, since the compiled version is what we'll use in the DOM.
entry: "./webpack/entry.js",
output: {
// put the generated file in the assets folder so jekyll will grab it.
path: './javascript/',
filename: "bundle.js"
},
// loaders for different libraries and, eventually, filetypes
module: {
@allizad
allizad / curl
Last active April 29, 2016 23:31
Jekyll generic scaffold
.
├── _config.yml
├── _includes
│   ├── footer.html
│   ├── head.html
│   ├── header.html
│   ├── icon-github.html
│   ├── icon-github.svg
│   ├── icon-twitter.html
│   └── icon-twitter.svg
destination: public
source: src
@allizad
allizad / Console errors for searchkit
Created April 26, 2016 18:02
Errors in browser console for searchkit history issues
client?cd17:59 ./~/searchkit/~/history/lib/createBrowserHistory.js
Module not found: Error: Cannot resolve module 'invariant' in /Users/alli/code/pro-react/node_modules/searchkit/node_modules/history/lib
resolve module invariant in /Users/alli/code/pro-react/node_modules/searchkit/node_modules/history/lib
looking for modules in /Users/alli/code/pro-react/node_modules/searchkit/node_modules
/Users/alli/code/pro-react/node_modules/searchkit/node_modules/invariant doesn't exist (module as directory)
resolve 'file' invariant in /Users/alli/code/pro-react/node_modules/searchkit/node_modules
resolve file
/Users/alli/code/pro-react/node_modules/searchkit/node_modules/invariant doesn't exist
/Users/alli/code/pro-react/node_modules/searchkit/node_modules/invariant.webpack.js doesn't exist
/Users/alli/code/pro-react/node_modules/searchkit/node_modules/invariant.web.js doesn't exist
@allizad
allizad / App.js
Created April 26, 2016 17:54
Main js file for searchkit history error
import React, { Component } from 'react';
import {render} from 'react-dom';
import Searchkit from 'searchkit';
require('bootstrap/dist/css/bootstrap.css');
require('./styles/main.scss');
import KanbanBoardContainer from './KanbanBoardContainer';
render(<KanbanBoardContainer />, document.getElementById('root'));
@allizad
allizad / webpack.config.js
Created April 26, 2016 17:53
webpack config for searchkit history error
var webpack = require('webpack');
/*
* Default webpack configuration for development
*/
var config = {
devtool: 'eval-source-map',
entry: [ __dirname + "/app/App.js", 'bootstrap-loader'],
output: {
path: __dirname + "/public",
@allizad
allizad / package.json searchkit history errors
Created April 26, 2016 17:51
package.json for searchkit history errors
{
"name": "react-app-boilerplate",
"version": "0.1.3",
"description": "React application boilerplate",
"author": "Cássio Zen",
"license": "ISC",
"scripts": {
"start": "node_modules/.bin/webpack-dev-server --progress",
"build": "NODE_ENV=production node_modules/.bin/webpack -p --progress --colors"
},