question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

disable minification for child compilers

See original GitHub issue

In order to optimize the compilation time for the html-webpack-plugin I would like to opt out from terser during the template compilation.

The minification would not help here as the generated code will not be saved to disked but is run directly. However it takes time for terser to minify and this time can be saved.

So basically I am looking for something like the following which can be set when create a child compiler:

module.exports = {
  //...
  optimization: {
    minimize: false
  }
};

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:24 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
jantimoncommented, Sep 1, 2020

Cool thanks 👍
Let me know if I can help you there.

1reaction
alexander-akaitcommented, Sep 1, 2020

@jantimon I will send a PR in near future, bit busy right now

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I prevent the closure compiler from minifying certain ...
I'm including it in my project.cljs file like so: [cljsjs/quill "1.3.5-0"] . The compiler is minifying some methods and is causing an error:...
Read more >
Optimization - webpack
Tells webpack to merge chunks which contain the same modules. Setting optimization.mergeDuplicateChunks to false will disable this optimization. webpack.config.
Read more >
Change the minification engine for client libraries in AEM
How to use a different minification library for AEM client libraries than the default YUI Compressor library? Resolution. In AEM, you can swap ......
Read more >
CSS compilers — webassets 0.12.1 documentation
The above code block behaves exactly like you would want it to: When debugging, the less files are compiled to CSS, but the...
Read more >
What is Minification and why is it Wreaking Havoc
If you want to disable minification completely then you'll need to first clear the cache that the plugin has created and then deactivate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found