mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
add image support to builder-manager
This commit is contained in:
parent
4ee407b4d0
commit
c321fa0eac
@ -39,7 +39,13 @@ export const getConfig: ManagerBuilder['getConfig'] = async (options) => {
|
||||
outdir: join(options.outputDir || './', 'sb-addons'),
|
||||
format: 'esm',
|
||||
outExtension: { '.js': '.mjs' },
|
||||
loader: { '.js': 'jsx' },
|
||||
loader: {
|
||||
'.js': 'jsx',
|
||||
'.png': 'file',
|
||||
'.jpg': 'file',
|
||||
'.jpeg': 'file',
|
||||
'.svg': 'file',
|
||||
},
|
||||
target: ['chrome100'],
|
||||
platform: 'browser',
|
||||
bundle: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user