Skip to content

Commit 05f669b

Browse files
committed
fix call to loadDataFromFile
closes #685
1 parent 131de00 commit 05f669b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/patternlab.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ var patternlab_engine = function (config) {
504504
patternlab.data = {};
505505
}
506506
try {
507-
patternlab.listitems = dataLoader.loadDataFromFile(path.resolve(paths.source.data, 'listitems.{json,yml,yaml}'));
507+
patternlab.listitems = dataLoader.loadDataFromFile(path.resolve(paths.source.data, 'listitems'), fs);
508508
} catch (ex) {
509509
plutils.warning('WARNING: missing or malformed ' + paths.source.data + 'listitems file. Pattern Lab may not work without this file.');
510510
patternlab.listitems = {};

0 commit comments

Comments
 (0)