message: serve extension config
diff: @@ -15,6 +15,7 @@ export async function dev(...args: string[]) {
  const publicPath = `${url}/assets/`;
  const filename = 'extension.js';
  const fileUrl = `${publicPath}${filename}`;
  + const configPath = `/config`;
  const compiler = webpack(
  createWebpackConfiguration({
  @@ -62,6 +63,15 @@ export async function dev(...args: string[]) {
  },
  });
  + if (extensionConfig) {
  + app.use(async (ctx, next) => {
  + if (ctx.path !== configPath) {
  + return next();
  + }
  + ctx.body = extensionConfig;
  + });
  + }
  +
  app.use(middleware);
  log(`Starting dev server on ${url}`);
  