vendredi 4 août 2017

Install an NPM package without its optional modules in Ember-CLI

I've got the NPM package xlsx as a dependency in my ember app which comes with an optional module for translations. When I build my app with Ember-CLI I'd like to specify somehow that this optional module be excluded.

The README for that package states “Webpack and browserify builds include optional modules by default. Webpack can be configured to remove support with resolve.alias:”

I'm not sure how I could configure my ember-cli-build.js to work with this.

I do know that I can download the package, build it myself, and then stick the resulting files in my vendor directory but this feels like the wrong way to go about it.

Does anybody have experience with this sort of situation?




Aucun commentaire:

Enregistrer un commentaire