oidc-client
Version:
OpenID Connect (OIDC) & OAuth2 client library
29 lines (27 loc) • 698 B
JavaScript
// create a webpack configuration with all common parts included here
var createWebpackConfig = function(options) {
return {
mode: options.mode,
entry: options.entry,
output: options.output,
plugins: options.plugins,
node: {
fs: 'empty', // Because of jsrsasign usage of fs
buffer: 'empty'
},
module: {
rules: [
{
test: /.js$/,
loaders: ['babel-loader'],
exclude: /node_modules/,
include: __dirname
}
]
},
// this is for the sourcemaps
devtool: options.devtool,
optimization: options.optimization
};
};
module.exports = createWebpackConfig;