UNPKG

rollup-plugin-version-injector

Version:

A simple rollup.js plugin to inject your application's version number and/or today's date into your built js, html, and css files!

19 lines (17 loc) 464 B
import { VersionInjectorConfig } from '../types/interfaces'; export const defaultConfig: VersionInjectorConfig = { injectInComments: { fileRegexp: /\.(js|html|css)$/, tag: 'Version: {version} - {date}', dateFormat: 'mmmm d, yyyy HH:MM:ss' }, injectInTags: { fileRegexp: /\.(js|html|css)$/, tagId: 'VI', dateFormat: 'mmmm d, yyyy HH:MM:ss' }, packageJson: './package.json', logLevel: 'info', logger: console, exclude: [] };