Visitar URL original
License comments lined up at the end of .min.js files · Issue #2761 · squidfunk/mkdocs-material · GitHub
Skip to content

License comments lined up at the end of .min.js files #2761

Closed

Description

@mhpe
  • I've read the [contribution guidelines][1] and agree with them

I've found a bug and checked that ...

  • ... the problem doesn't occur with the default MkDocs template
  • ... the problem is not in any of my customizations (CSS, JS, template)
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

The license comments in bundle.min.js and search.min.js seem oddly placed (at the end of the files, not in-between code blocks), was that an intended change from version 6 to version 7?

Activity

  1. squidfunk commented on Jun 14, 2021

    @squidfunk
    Owner

    Thanks for reporting. It's the default behavior of ESBuild which we're using from v7 on. Honestly, I don't care where they are, so yes, we can move them inline to their respective sources if there are no downsides like increased bundle size after gzip. ESBuild is parametrized here, so feel free to create a PR:

    return defer(() => esbuild({
    entryPoints: [options.from],
    target: "es2015",
    write: false,
    bundle: true,
    sourcemap: true,
    minify: process.argv.includes("--optimize")
    }))

    Please include a bundle size comparison after gzip into the PR.

  2. squidfunk commented on Jun 17, 2021

    @squidfunk
    Owner

    Fixed in a4a00af.

  3. added
    resolvedIssue is resolved, yet unreleased if open
    and removed on Jun 17, 2021
  4. squidfunk commented on Jun 25, 2021

    @squidfunk
    Owner

    Released as part of 7.1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestIssue requests a new feature or improvementresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions