Skip to content

Instantly share code, notes, and snippets.

View moizhb's full-sized avatar

Moiz Bhukhiya moizhb

View GitHub Profile
import React from 'react'
import ReactDOM from 'react-dom'
import DevTools from './containers/DevTools';
import { Provider } from 'react-redux'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import store from './store'
import Root from '../containers/Root';
import { NotFoundView, Counter, FooView, BarView } from '../components';
import { SplitLayout, Primary } from '../layouts'
const path = require('path');
const express = require('express');
const webpack = require('webpack');
const config = require('./webpack.config.dev');
const app = express();
const compiler = webpack(config);
const host = 'http://localhost';
const port = process.env.npm_config_port ? process.env.npm_config_port : 3000;
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
devtool: 'cheap-module-eval-source-map',
entry: [
'eventsource-polyfill', // necessary for hot reloading with IE
'webpack-hot-middleware/client',
'./src/index'
@moizhb
moizhb / d3 in dojo
Created February 17, 2015 20:54
d3 in dojo
define(["dojo/text!./d3.js"], function(d3Str){
eval(d3Str);
return this.d3;
});