docuhelp
Version:
self service knowledgebase software
27 lines (22 loc) • 547 B
JavaScript
const path = require('path');
const BrotliPlugin = require('brotli-webpack-plugin')
module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'docuhelp.js',
library: 'DocuHelp',
libraryTarget: 'umd',
umdNamedDefine: true,
globalObject: `(typeof self !== 'undefined' ? self : this)`
},
plugins: [
new BrotliPlugin({
asset: '[path].br[query]',
test: /\.(js|css|html|svg)$/,
threshold: 10240,
minRatio: 0.8
})
],
mode: 'production'
};