UNPKG

profanity-cleaner

Version:

A simple and lightweight JavaScript library that helps you clean profane or inappropriate words from a given text

28 lines (27 loc) 669 B
const path = require('path'); module.exports = { entry: { "profanity-cleaner" : path.resolve(__dirname, 'src/index.js'), "profanity-cleaner.min" : path.resolve(__dirname, 'src/index.js') }, devtool: "source-map", output: { path: path.resolve(__dirname, 'dist'), filename: '[name].js', globalObject: 'this', library: { name: 'profanityCleaner', type: 'umd', }, }, module: { rules: [ { test: /\.(js)$/, exclude: /node_modules/, use: ['babel-loader'], }, ], }, mode: 'production', };