Skip to content

Instantly share code, notes, and snippets.

Moiz Bhukhiya moizhb

  • Dallas, TX
Block or report user

Report or block moizhb

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 index.js
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'
View devServer.js
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;
View webpack.config.dev.js
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'
View d3 in dojo
define(["dojo/text!./d3.js"], function(d3Str){
eval(d3Str);
return this.d3;
});
You can’t perform that action at this time.