jose-jwe-jws
Version:
Library to encrypt and decrypt data in JSON Web Encryption (JWE) format and to sign data in JSON Web Signature (JWS) format. Leverages Browser's native web crypto API.
44 lines (38 loc) • 732 B
JavaScript
const webpack = require('webpack')
const path = require('path')
module.exports = {
module: {
rules: [{
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
},
test: /\.js$/
}]
},
entry: './lib/jose-core',
output: {
filename: 'jose.js',
library:'Jose',
libraryTarget: 'var',
path: path.resolve(__dirname, 'dist')
},
mode: 'development',
devtool: 'source-map',
optimization: {
splitChunks: {
cacheGroups: {
vendors: {
priority: -10,
test: /[\\/]node_modules[\\/]/
}
},
chunks: 'async',
minChunks: 1,
minSize: 30000,
name: true
}
}
}