From 11e1138a648220d6bae3dfd4784e6a990a5fa557 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 +- src/scripts/schemas/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Configuration.md b/docs/Configuration.md index d0ec737c1..43de82493 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -52,7 +52,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/src/scripts/schemas/config.js b/src/scripts/schemas/config.js index 90c422943..081d553c0 100644 --- a/src/scripts/schemas/config.js +++ b/src/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: {