UNPKG

timesago

Version:

A simple & lightweight js library that make it easy to convert timestamps into human-readable time ago statements (eg. '2 hours ago' or 'in 3 days.')

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