This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(["dojo/text!./d3.js"], function(d3Str){ | |
eval(d3Str); | |
return this.d3; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |