mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
builder manager: add correct loader type for images
This commit is contained in:
parent
c321fa0eac
commit
6689609a08
@ -41,10 +41,13 @@ export const getConfig: ManagerBuilder['getConfig'] = async (options) => {
|
||||
outExtension: { '.js': '.mjs' },
|
||||
loader: {
|
||||
'.js': 'jsx',
|
||||
'.png': 'file',
|
||||
'.jpg': 'file',
|
||||
'.jpeg': 'file',
|
||||
'.svg': 'file',
|
||||
'.png': 'dataurl',
|
||||
'.gif': 'dataurl',
|
||||
'.jpg': 'dataurl',
|
||||
'.jpeg': 'dataurl',
|
||||
'.svg': 'dataurl',
|
||||
'.webp': 'dataurl',
|
||||
'.webm': 'dataurl',
|
||||
},
|
||||
target: ['chrome100'],
|
||||
platform: 'browser',
|
||||
|
Loading…
x
Reference in New Issue
Block a user