Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Improved baseDir handling within options, so it doesn't go out to the…
Browse files Browse the repository at this point in the history
… package.json directory. (#57)

Assets can now be in any location, the baseDir option allows to improve the path of copied assets, especially if assets are not based on root path
  • Loading branch information
Cyclodex authored and mpetrovich committed Dec 16, 2018
1 parent bc6bb8d commit 25cb268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stylemark.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function generate(params) {
options.output = output;
options.match = options.match || defaultMatchExtensions;
options.excludeDir = defaultExcludeDirectories.concat(options.excludeDir);
options.baseDir = options.baseDir ? findRoot(path.resolve(options.baseDir)) : findRoot(configPath);
options.baseDir = options.baseDir ? path.resolve(options.baseDir) : findRoot(configPath);

['match', 'excludeDir'].forEach(name => {
options[name] = _.isString(options[name]) ? new RegExp(options[name]) : options[name];
Expand Down

0 comments on commit 25cb268

Please sign in to comment.