Skip to content

Commit f550f11

Browse files
committed
fix: if plugins is array
1 parent df36e4f commit f550f11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cli.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ const config = cfgResolve(cli);
6767

6868
const processing = async file => {
6969
const output = await outResolve(file, config.output);
70-
// const output = path.resolve(config.output, path.basename(file));
71-
const plugins = getPlugins(config);
70+
const plugins = Array.isArray(config.plugins) ? config.plugins : getPlugins(config);
7271

7372
makeDir(path.dirname(output))
7473
.then(read.bind(null, file))

0 commit comments

Comments
 (0)