Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polyfill support #3

Open
kierangillen opened this issue Jan 18, 2017 · 1 comment
Open

polyfill support #3

kierangillen opened this issue Jan 18, 2017 · 1 comment

Comments

@kierangillen
Copy link

Hey I added some code to the webpack.config.js to support Fetch on Safari.

I changed the entry to:

  entry: ['whatwg-fetch', `${APP_DIR}/index.js`],

In the plugins array I added:

    new webpack.ProvidePlugin({
    Promise: 'promise-polyfill'
    })

I also added to the package.json in dependencies:

    "promise-polyfill": "^6.0.2",
    "whatwg-fetch": "^2.0.1"

I had to remove two lines from deployment_react.sh for Heroku to accept whatwg-fetch.

npm run clean -s
rm -rf node_modules
@kierangillen
Copy link
Author

kierangillen commented Jan 23, 2017

also:

      {
        test: /\.(eot|svg|ttf|woff|woff2)$/,
        loader: 'file-loader?name=/fonts/[name].[ext]'
      }

for more font files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant