Skip to content

Commit f3c7a2c

Browse files
clarkdoevilebottnawi
authored andcommitted
feat: add target, minimize and resourceQuery into context (#25)
1 parent 00ad7f2 commit f3c7a2c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ function pitch() {
1818
emitError: this.emitError,
1919
emitWarning: this.emitWarning,
2020
resolve: this.resolve,
21+
target: this.target,
22+
minimize: this.minimize,
23+
resourceQuery: this.resourceQuery,
2124
optionsContext: this.rootContext || this.options.context,
2225
}, (err, r) => {
2326
if (r) {

src/worker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ const queue = asyncQueue(({ id, data }, taskCallback) => {
9090
webpack: true,
9191
'thread-loader': true,
9292
sourceMap: data.sourceMap,
93+
target: data.target,
94+
minimize: data.minimize,
95+
resourceQuery: data.resourceQuery,
9396
},
9497
}, (err, lrResult) => {
9598
const {

0 commit comments

Comments
 (0)