From 2f8d32a1f4fbe51c4e6ac381d5d663d8f11fc1f9 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Mon, 5 Nov 2018 19:02:35 +0100 Subject: Linted all files, upgraded all dependencies --- rollup.config.js | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'rollup.config.js') diff --git a/rollup.config.js b/rollup.config.js index 339328c..3d4f61a 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,6 +1,23 @@ import babel from 'rollup-plugin-babel' import { uglify } from "rollup-plugin-uglify" import filesize from 'rollup-plugin-filesize' +import progress from 'rollup-plugin-progress' +const pkg = require('./package.json') + +const buildDate = Date() + +const headerLong = `/*! +* ${pkg.name} - ${pkg.description} +* @version ${pkg.version} +* ${pkg.homepage} +* +* @copyright ${pkg.author} +* @license ${pkg.license} +* +* BUILT: ${buildDate} +*/;` + +var headerShort = `/*! ${pkg.name} v${pkg.version} ${pkg.license}*/;` export default [{ input: 'src/svg.js', @@ -8,9 +25,11 @@ export default [{ file: 'dist/svg.js', name: 'SVG', sourceMap: true, - format: 'iife' + format: 'iife', + banner: headerLong }, plugins: [ + progress(), babel({ include: 'src/**' }), @@ -22,7 +41,8 @@ export default [{ file: 'dist/svg.min.js', name: 'SVG', sourceMap: true, - format: 'iife' + format: 'iife', + banner: headerShort }, plugins: [ babel({ -- cgit v1.2.3