mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 23:21:15 +08:00
Merge pull request #18857 from storybookjs/norbert/sb-631-sb18789-theming-v700-alpha16-no-loader
add image support to builder-manager
This commit is contained in:
commit
c8bcbeb510
@ -39,7 +39,16 @@ 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': 'dataurl',
|
||||
'.gif': 'dataurl',
|
||||
'.jpg': 'dataurl',
|
||||
'.jpeg': 'dataurl',
|
||||
'.svg': 'dataurl',
|
||||
'.webp': 'dataurl',
|
||||
'.webm': 'dataurl',
|
||||
},
|
||||
target: ['chrome100'],
|
||||
platform: 'browser',
|
||||
bundle: true,
|
||||
|
@ -116,7 +116,7 @@ async function run() {
|
||||
const commmand = (await readJSON(resolve(v.location, 'package.json'))).scripts.prepare;
|
||||
const cwd = resolve(__dirname, '..', 'code', v.location);
|
||||
const sub = require('execa').command(
|
||||
`yarn ${commmand}${watchMode ? ' --watch' : ''}${prodMode ? ' --optimized' : ''}`,
|
||||
`${commmand}${watchMode ? ' --watch' : ''}${prodMode ? ' --optimized' : ''}`,
|
||||
{
|
||||
cwd,
|
||||
buffer: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user