dayjs-twitter
Version:
A Twitter-like date formatter for day.js
23 lines (21 loc) • 416 B
JavaScript
const path = require('path')
const config = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'dayjs-twitter.min.js',
libraryTarget: 'umd',
globalObject: 'this',
library: 'dayjsTwitter'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
]
}
}
module.exports = config