UNPKG

@gohelpfund/helpcore-lib

Version:

A pure and powerful JavaScript Help library.

36 lines (31 loc) 822 B
/* eslint-disable */ // TODO: Remove previous line and work through linting issues at next edit const path = require('path'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin') const commonJSConfig = { entry: ['./index.js'], module: { rules: [], }, target: 'web' }; const rawConfig = Object.assign({}, commonJSConfig, { output: { path: path.resolve(__dirname, 'dist'), filename: 'helpcore-lib.js', library: 'helpcore', libraryTarget: 'umd', } }) const uglifiedConfig = Object.assign({}, commonJSConfig, { output: { path: path.resolve(__dirname, 'dist'), filename: 'helpcore-lib.min.js', library: 'helpcore', libraryTarget: 'umd', }, plugins: [ new UglifyJsPlugin() ] }) module.exports = [rawConfig, uglifiedConfig];