Skip to content

Commit 3987583

Browse files
committed
feat(webpack): only enable in development mode
1 parent 6bcf121 commit 3987583

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ export const unpluginFactory: UnpluginFactory<Options> = options => ({
123123
},
124124
},
125125
webpack(compiler) {
126+
if (process.env.NODE_ENV !== 'development')
127+
return
128+
126129
const {
127130
enable = true,
128131
target = '',

0 commit comments

Comments
 (0)