From 670767555b5e1341ed0eec263352f93108f741bd Mon Sep 17 00:00:00 2001 From: Dario Merz Date: Mon, 8 Oct 2018 15:25:29 +0200 Subject: [PATCH] Fix: Allow assetsDir to be an array (#1167) --- docs/Configuration.md | 2 +- scripts/schemas/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Configuration.md b/docs/Configuration.md index dbb2fd951..7bc8d3386 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -53,7 +53,7 @@ By default, Styleguidist will look for `styleguide.config.js` file in your proje #### `assetsDir` -Type: `String`, optional +Type: `String` or `Array`, optional Your application static assets folder, will be accessible as `/` in the style guide dev server. diff --git a/scripts/schemas/config.js b/scripts/schemas/config.js index d029848b4..1160d61c7 100644 --- a/scripts/schemas/config.js +++ b/scripts/schemas/config.js @@ -26,7 +26,7 @@ const consts = require('../consts'); module.exports = { assetsDir: { - type: 'existing directory path', + type: ['array', 'existing directory path'], example: 'assets', }, compilerConfig: {