Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 348d751

Browse files
committed
fix: undo last changes
1 parent 5aecea0 commit 348d751

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { forEach } from '@dword-design/functions'
2+
import P from 'path'
23

34
export default (self, ...plugins) =>
45
forEach(plugins, plugin => {
5-
self.addTemplate(plugin)
6-
self.options.plugins.push(plugin)
6+
const template = self.addTemplate(plugin)
7+
self.options.plugins.push({
8+
mode: plugin.mode,
9+
src: P.join(self.options.buildDir, template.dst),
10+
})
711
})

0 commit comments

Comments
 (0)