Install webcomponents polyfills locally

This commit is contained in:
Léon Rodenburg 2017-11-03 14:22:57 +01:00
parent 1d4f472f7e
commit 19f5a96550
2 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,8 @@ export default function() {
manager: [require.resolve('./polyfills'), require.resolve('../../client/manager')],
preview: [
require.resolve('./polyfills'),
require.resolve('@webcomponents/webcomponentsjs/webcomponents-loader.js'),
require.resolve('@webcomponents/webcomponentsjs/webcomponents-loader.js'),
require.resolve('./globals'),
`${require.resolve('webpack-hot-middleware/client')}?reload=true`,
],

View File

@ -5,8 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<base target="_parent">
<title>Storybook</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.17/custom-elements-es5-adapter.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.17/webcomponents-loader.js"></script>
<%= htmlWebpackPlugin.options.data.previewHead %>
</head>
<body>