We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.7.0
In our project the production build output is not minified. and it contains 100% of the comments in tsx files.
I read that in production minifyCss and minifyJs flags are by default true. But i still can see the comments in the build output files.
minifyCss
minifyJs
Sample output code:
I want the build output file to have a single line of Javascript --- no spaces, no indentation, no comments,
System: node 18.20.6 Platform: windows (10.0.26100) CPU Model: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 cpus) Compiler: C:\Users\hidden-profile\Documents\hidden-project-name\node_modules\@stencil\core\compiler\stencil.js Build: 1740192295 Stencil: 4.27.0 TypeScript: 5.5.4 Rollup: 2.56.3 Parse5: 7.1.2 jQuery: 4.0.0-pre Terser: 5.31.1
Initialize a new Stencil project:
npm init stencil
Select the "component" starter when prompted.
Navigate into the project directory:
cd my-component
Edit a component file, e.g. src/components/my-component/my-component.tsx, and add some comments:
src/components/my-component/my-component.tsx
// This is a TypeScript comment render() { return ( <div> {/* This is a JSX comment */} <p>Hello, World!</p> </div> ); }
Run the build:
npm run build
Check the output files in dist/ folder
dist/
https://github.com/stenciljs/component-starter#
I have checked this Issue
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prerequisites
Stencil Version
4.7.0
Current Behavior
In our project the production build output is not minified. and it contains 100% of the comments in tsx files.
I read that in production

minifyCss
andminifyJs
flags are by default true. But i still can see the comments in the build output files.Sample output code:

Expected Behavior
I want the build output file to have a single line of Javascript --- no spaces, no indentation, no comments,
System Info
Steps to Reproduce
🐛 Steps to Reproduce
Initialize a new Stencil project:
Select the "component" starter when prompted.
Navigate into the project directory:
cd my-component
Edit a component file, e.g.
src/components/my-component/my-component.tsx
, and add some comments:Run the build:
Check the output files in
dist/
folderCode Reproduction URL
https://github.com/stenciljs/component-starter#
Additional Information
I have checked this Issue
The text was updated successfully, but these errors were encountered: