cookie-to-guard
Version:
Library for protecting cookies from tampering
34 lines (33 loc) • 836 B
JavaScript
const TerserPlugin = require('terser-webpack-plugin');
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'cookie-to-guard.js',
library: 'CookieToGuard',
libraryTarget: 'umd'
},
optimization: {
minimize: true,
minimizer: [new TerserPlugin({
extractComments: false,
terserOptions: {
output: {
comments: false,
},
},
})],
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
}
]
}
};