<commit_before>import license from "rollup-plugin-license";
import { uglify } from "rollup-plugin-uglify";

export default {
  input: "src/Headroom.js",
  output: {
    file: "dist/headroom.js",
    format: "umd",
    name: "Headroom",
    compact: true
  },
  plugins: [
    uglify(),
    license({
      banner: {
        commentStyle: "ignored",
        content: `<%= pkg.name %> v<%= pkg.version %> - <%= pkg.description %>
                  Copyright (c) <%= moment().format('YYYY') %> <%= pkg.author %> - <%= pkg.homepage %>
                  License: <%= pkg.license %>`
      }
    })
  ]
};<commit_msg>separate minified and unminified outputs<commit_after>import license from "rollup-plugin-license";
import { uglify } from "rollup-plugin-uglify";

const input = "src/Headroom.js";

const output = {
  format: "umd",
  name: "Headroom"
};

const plugins = [
  license({
    banner: {
      commentStyle: "ignored",
      content: `<%= pkg.name %> v<%= pkg.version %> - <%= pkg.description %>
                Copyright (c) <%= moment().format('YYYY') %> <%= pkg.author %> - <%= pkg.homepage %>
                License: <%= pkg.license %>`
    }
  })
];

const unminified = {
  input,
  output: {
    ...output,
    file: "dist/headroom.js"
  },
  plugins
};

const minified = {
  input,
  output: {
    ...output,
    file: "dist/headroom.min.js",
    compact: true
  },
  plugins: [uglify(), ...plugins]
};

export default [unminified, minified];
{'fraction_non_alphanumeric': 0.18625429553264605, 'fraction_numerical': 0.0, 'mean_word_length': 2.508433734939759, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1498397', 'n_tokens_mistral': 539, 'n_tokens_neox': 484, 'n_words': 102}