Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor: Aggregate multiple CSS and Javascript files into one on development server?

Tags:

meteor

Meteor uses separate CSS and JS files on the development server and combines and minifies them on the production server. Is there a way to force it to combine and minify all JS/CSS on the development server (localhost), at least to check if the combined file works fine before deploying? Thanks.

like image 282
sebastien.b Avatar asked Nov 30 '22 22:11

sebastien.b


1 Answers

> meteor run --production

meteor run now has a production flag:

Usage: meteor run [options]
Options:
  --port, -p    Port to listen on. NOTE: Also uses port N+1 and N+2.         [default: 3000]
  --production  Run in production mode. Minify and bundle CSS and JS files.  [boolean]
like image 68
Kyle Finley Avatar answered Dec 04 '22 05:12

Kyle Finley