Skip to content

Feature Request: Configure builds to disable minification #1485

Closed

Description

@petermikitsh

Stencil version:

I'm submitting a:

[ ] bug report
[X] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

Components built by Stencil are minified.

Expected behavior:

Builds are configurable to disable minification. When consuming components produced by Stencil, I am doing so in an environment where I am using webpack, rollup, etc. It is unnecessary for Stencil to force minification on my builds.

Additionally, when I consume my stencil components in another project and they throw an error, because the code is minified and there are no source maps, it is difficult to trace the origin of the error. Had the code not been minified (and that responsibility was left to my own bundler), I'd have an easier time reasoning about errors thrown by my Stencil components.

Consequently, the minification provides a sub-optimal developer experience, and should be optional.

Activity

  1. changed the title [-]Disable minification[/-] [+]Feature Request: Configure builds to disable minification[/+] on Apr 30, 2019
  2. bodinaren commented on Apr 30, 2019

    @bodinaren
    Contributor

    In current version 1.0.0-alpha.14 you can add minifyJs: false to the stencil.config.ts file.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions