Do I use an NPM package to get LESS now? Or Atmosphere?

Will meteor’s build system know that I’m using an NPM less package? Do I need to import the node package somewhere?

So confused…

Use Less from Atmosphere. Use NPM packages when code doesn’t need to be transpiled. Otherwise, anything that needs to be transpiled (like Less files) should use build plugins from Atmosphere because they hook into Meteor’s build system. Meteor’s build system is based on Atmosphere packages and includes reloading the styles/client/server when files change on the server-side disk. If you use Less from NPM you would have to implement all that build stuff and reloading yourself.

At some point, Meteor may switch to NPM modules, in which case at that point you’ll probably be able to use Less from NPM.

3 Likes