Partials in node_modules

Hi there !

Iā€™d like to know if there is a way to call the partials that are in a directory outside the source directory (here the node_modules directory)

Thanks :wink:

Just brainstrorming here

  • Assume partial is in an NPM
  • Do a package.json scripts > postinstall ln -s source/partials/... node_modules/package/partials....

Try and then call the partials as you normally would

1 Like

Thanks, it works just fine !

Hi there ! :wave:

Iā€™m getting another problem because of the symlink.

Everytime I save a view placed in the source directory (partials are okay), this error appear :

ERROR -- : exception while processing events: Is a directory @ io_fread - /.../middleman/app/node-modules-symlink

Any clue ?