diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-05 19:02:35 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-05 19:02:35 +0100 |
commit | 2f8d32a1f4fbe51c4e6ac381d5d663d8f11fc1f9 (patch) | |
tree | 4abb508477aa4b6b811f89731011661783a2225c /rollup.config.js | |
parent | 4049e2e6361d5ed9120f1edd02ef96ecc138fa6d (diff) | |
download | svg.js-2f8d32a1f4fbe51c4e6ac381d5d663d8f11fc1f9.tar.gz svg.js-2f8d32a1f4fbe51c4e6ac381d5d663d8f11fc1f9.zip |
Linted all files, upgraded all dependencies
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 24 |
1 files changed, 22 insertions, 2 deletions
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({ |