mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 21:01:08 +08:00
Install webcomponents polyfills locally
This commit is contained in:
parent
1d4f472f7e
commit
19f5a96550
@ -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`,
|
||||
],
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user