Using variables with Plugins configuration

Hey all,

i have an odd situation where if i try and include plugin configuration from a referenced source I receive the error:

servicePlugins.forEach is not a function

Relevant serverless.yml:

custom: ${file(./serverless.vars.yml)}
plugins: ${self:custom.plugins}

And in serverless.vars.yml:

plugins:
  - serverless-webpack

I am using rc.2

Cheers,
Mark

Not something I’ve used myself, but have you tried referencing variables in another file directly?

I’m guessing it would look something like:

plugins: ${file(./serverless.vars.yml):plugins}

Thanks for the response. Yeah I tried that also, unless I put the list inline I receive:

TypeError: servicePlugins.forEach is not a function
    at PluginManager.loadServicePlugins (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:183:20)
    at PluginManager.loadAllPlugins (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:33:10)
    at service.load.then (/usr/local/lib/node_modules/serverless/lib/Serverless.js:63:28)