Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
Is there a way to minify all my js/css files while rendering to the browser but not while editing it in the IDE?

My js file has a lot of comments and spaces which increases its size and slows down the website. So I am looking for a way to minify all that when I start the server but I should be able to edit it with my original file. Basically the browser sees the minified version when we 'view page source' but I should be able to see the commented version in my IDE. Is there any npm package or any way we can do that?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This is usually done with a build tool such as parcel or webpack (there are many others).

Parcel is maybe the simplest to setup, because the most important features - including minifying - are built in, or are configured automatically, however it may depend on how you have organized your project. In the best case you just need to install it

npm install --save-dev parcel

and then you can create a production build with

parcel build index.html

(if index.html is your main file).

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!