Skip to content

Commit

Permalink
fixed optimize not work when config.out is a function
Browse files Browse the repository at this point in the history
  • Loading branch information
mm-sam committed Oct 26, 2017
1 parent f4e238c commit 0489528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion css-builder.js
Expand Up @@ -127,7 +127,7 @@ define(['require', './normalize'], function(req, normalize) {
config = config || _config;

if (!siteRoot) {
siteRoot = path.resolve(config.dir || path.dirname(config.out), config.siteRoot || '.') + '/';
siteRoot = path.resolve(config.dir || path.dirname(config.out.toString()), config.siteRoot || '.') + '/';
if (isWindows)
siteRoot = siteRoot.replace(/\\/g, '/');
}
Expand Down

0 comments on commit 0489528

Please sign in to comment.