anomepani
anomepani

Reputation: 1846

Meteor new application structure is slow down development for ui folder

I have migrated my meteor 1.2.1 code base to meteor 1.3.0 and also moved all client code to imports/ui to utilize lazy loading feature for imports folder. My problem is, If I am changing any client side file its restarting every time, which slows down development time in meteor 1.3.0 as I have to wait for building process.

Please provide your suggestion or best approach to overcome this issue.

Upvotes: 1

Views: 44

Answers (2)

anomepani
anomepani

Reputation: 1846

As I have used Meteor 1.3.0 imports directory structure I have faced that issue but below are solution.

  • I am posting answer to my question as I have found reason why Meteor rebuilding my client side code, When I change any file.
  • Currently I am using /imports/ui/ for storing client side code. As you all know ui directory doesn't have any special purpose in Meteor build.
  • So, it assume this code as client or server code and rebuild and restart meteor app every time.
  • If you rename that folder/directory to client then it only refresh client side code not full app because client folder have special meaning in meteor.

Moreover now you can also use latest version of meteor which help to speed up startup building your app.

Hope this will help you solve problem.

Upvotes: 1

perusopersonale
perusopersonale

Reputation: 896

Meteor 1.4.2 is been released in these days.

In the official forum they say: The big news is improved rebuild performance. Maybe you should give a try.

Upvotes: 0

Related Questions