diff --git a/CHANGELOG.md b/CHANGELOG.md index d1a523dd..5d527d16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [Unreleased] + +- `babel-polyfill` for IE11 support + ## [2.5.1] - 2018-10-18 - [#230](https://github.com/auth0/auth0-authorization-extension/pull/230) - Use dedicated nonce key as `authz-nonce` to avoid collisions diff --git a/build/webpack/config.base.js b/build/webpack/config.base.js index 326d1857..b0774e3e 100644 --- a/build/webpack/config.base.js +++ b/build/webpack/config.base.js @@ -13,6 +13,7 @@ module.exports = { entry: { app: path.resolve(__dirname, '../../client/app.jsx'), vendors: [ + 'babel-polyfill', 'axios', 'bluebird', 'classnames', diff --git a/build/webpack/config.dev.js b/build/webpack/config.dev.js index 56743845..3cea3138 100644 --- a/build/webpack/config.dev.js +++ b/build/webpack/config.dev.js @@ -11,6 +11,7 @@ const config = require('./config.base.js'); config.devtool = 'eval-source-map'; config.debug = true; config.entry = [ + 'babel-polyfill', `webpack-dev-server/client?http://${WEBPACK_HOST}:${WEBPACK_PORT}`, 'webpack/hot/only-dev-server', config.entry.app diff --git a/server/plugins/html.js b/server/plugins/html.js index d73a44b4..9ec53212 100644 --- a/server/plugins/html.js +++ b/server/plugins/html.js @@ -64,6 +64,10 @@ const assembleHtmlRoute = (link) => ({ if (locals.assets.vendors) { locals.assets.vendors = `/app/${locals.assets.vendors}`; } + + if (locals.assets.style) { + locals.assets.style = `/app/${locals.assets.style}`; + } } // Render the HTML page. diff --git a/server/views/index.js b/server/views/index.js index 0525e8bb..5dd658b8 100644 --- a/server/views/index.js +++ b/server/views/index.js @@ -10,6 +10,7 @@ module.exports = ` + <% if (assets.style) { %><% } %> <% if (assets.version) { %><% } %>