examples/web/server.js
function svgs(req, res) {
  const bundle = new Bundle(
    req.url.slice(1, -5).split('-').map(function map(name) {
      return assets[name];
    })
  );

  bundle.run(function (err, output) {
    if (err) throw err;

    res.setHeader('Content-Length', Buffer(output).length);
    res.writeHead(200, { 'Content-Type': 'text/plain' });

    res.end(output);
  });
}
function svgs(req, res) {
  const bundle = new Bundle(
    req.url.slice(1, -5).split('-').map(function map(name) {
      return assets[name];
    })
  );

  bundle.run(function (err, output) {
    if (err) throw err;

    res.setHeader('Content-Length', Buffer(output).length);
    res.writeHead(200, { 'Content-Type': 'text/plain' });

    res.end(output);
  });
}
function svgs ( req , res ) { const bundle = new Bundle ( req . url . slice ( 1 , - 5 ) . split ( '-' ) . map ( function map ( name ) { return assets [ name ] ; } ) ) ; bundle . run ( function ( err , output ) { if ( err ) throw err ; res . setHeader ( 'Content-Length' , Buffer ( output ) . length ) ; res . writeHead ( 200 , { 'Content-Type' : 'text/plain' } ) ; res . end ( output ) ; } ) ; }
Serve the bundle.svgs.

@param {Request} req HTTP request.
@param {Response} res HTTP response.
@private
Serve the bundle . svgs .