code: function asUmdLibrary() {
          const filename = env.prod ? `[name].min.js` : `[name].js`;
          return {
              entry: {
                  [libraryName]: path.join(rootDir, 'index.ts')
              },
              // tells webpack not to include in bundle require'd node specific objects (eg path)
              target: 'node',
              output: {
                  path: path.join(rootDir, 'bundles'),
                  filename: filename,
                  library: libraryName,
                  libraryTarget: 'umd',
                  umdNamedDefine: false
              }
          };
      }
docs: ///