1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

add fetch polifill

This commit is contained in:
Ivar 2016-11-16 22:19:38 +01:00
parent 1a21e16710
commit a7c844d716
5 changed files with 26 additions and 24 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,8 @@
"react-router": "^3.0.0",
"react-toolbox": "^1.2.1",
"redux": "^3.6.0",
"redux-thunk": "^2.1.0"
"redux-thunk": "^2.1.0",
"whatwg-fetch": "^2.0.0"
},
"devDependencies": {
"babel-core": "^6.14.0",

View File

@ -1,3 +1,4 @@
import 'whatwg-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRedirect, hashHistory } from 'react-router';

View File

@ -5,7 +5,7 @@ const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const entry = ['./src/index'];
const entry = ['whatwg-fetch', './src/index'];
const plugins = [new ExtractTextPlugin('bundle.css', { allChunks: true })];
if (process.env.NODE_ENV === 'development') {