What's the best way to remove blaze, templates, ect? (core)


#1

I don’t want to remove ALL the packages listed here:
https://github.com/meteor/meteor/blob/devel/packages/meteor-platform/package.js

I just want to remove things like blaze and spacebars.
What’s the best way to remove core packages?

I want to be able to update my app ect and stay up to date… I just don’t want blaze :stuck_out_tongue:


#2

Just copy all the package names that you want into the .meteor/packages file. The version of these packages that is used is determined by the Meteor release that you use (.meteor/release).


#3

okay but what do I do about this:

// These are useful too!  But you don't have to see their exports
  // unless you want to.
  api.use([
    // We can reload the client without messing up methods in flight.
    'reload',
    // And update automatically when new client code is available!
    'autoupdate'
  ], ['client', 'server']);

  // More mobile specific implies
  api.imply([
    // Remove the 300ms click delay on mobile
    'fastclick',
    // Good defaults for the mobile status bar
    'mobile-status-bar'
  ], 'web.cordova');

  api.imply([
    // Launch screen configuration. Currently only on mobile but we include the
    // no-op browser version anyway.
    'launch-screen'
  ], 'web');

do I just add those too or…


#4

Yes you just add those too. If you also want a Cordova app, you can just copy the source code of the meteor-platform package into you /packages folder and modify it there. The .meteor/packages file would then just have your custom meteor-platform package as dependency (just give it another name).


#5

Okay thanks a bunch!


#6

I’ve tried to do that, but when I add webapp package it adds Blaze as a dependency. And if do not add it, it has no main.
Has anyone already dig into it?


#7

Yes. You can create your own modified version of webapp and add it as local package. This will overwrite the original one. The package version must match with the original one.


#8

Cool. That’s really useful.

Thank you Sanjo.