Meteor: merge several CSS and Javascript files into one on the development server?

Meteor uses separate CSS and JS files on the development server and combines and minimizes them on the production server. Is there a way to get it to merge and outperform all JS / CSS on the development server (localhost), at least to check if the merged file works before deployment? Thanks.

+4
source share
2 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] 
+19
source

Not at present. You can meteor deploy --debug leave the files incomplete in production, but at this time there is no "merge, but not reduce" command in the meteor.

In docs :

You can deploy in debug mode by passing -debug. This will leave your source code readable by your favorite debugger in the browser, as well as in local development mode.

If you just want to merge several javascript files into one, here are some ideas .

0
source

All Articles