gulpfile.js
function build_lib_sourcemap(){
  // run webpack
  return gulp.src('index.js').pipe(webpackStream(createWebpackConfig({
    mode: 'development',
    entry: npmEntry,
    output: {
        filename:'oidc-client.js',
        libraryTarget:'umd',
        // Workaround for https://github.com/webpack/webpack/issues/6642
        globalObject: 'this'
    },
    plugins: [],
    devtool:'inline-source-map'
  }), webpack))
  .pipe(gulp.dest('lib/'));
}
function build_lib_sourcemap(){
  // run webpack
  return gulp.src('index.js').pipe(webpackStream(createWebpackConfig({
    mode: 'development',
    entry: npmEntry,
    output: {
        filename:'oidc-client.js',
        libraryTarget:'umd',
        // Workaround for https://github.com/webpack/webpack/issues/6642
        globalObject: 'this'
    },
    plugins: [],
    devtool:'inline-source-map'
  }), webpack))
  .pipe(gulp.dest('lib/'));
}
function build_lib_sourcemap ( ) { // run webpack return gulp . src ( 'index.js' ) . pipe ( webpackStream ( createWebpackConfig ( { mode : 'development' , entry : npmEntry , output : { filename : 'oidc-client.js' , libraryTarget : 'umd' , // Workaround for https://github.com/webpack/webpack/issues/6642 globalObject : 'this' } , plugins : [ ] , devtool : 'inline-source-map' } ) , webpack ) ) . pipe ( gulp . dest ( 'lib/' ) ) ; }
npm compliant build with source-maps
npm compliant build with source - maps