Skip to content

Commit

Permalink
feat: add target, minimize and resourceQuery into context (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and evilebottnawi committed Jul 27, 2018
1 parent 00ad7f2 commit f3c7a2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ function pitch() {
emitError: this.emitError,
emitWarning: this.emitWarning,
resolve: this.resolve,
target: this.target,
minimize: this.minimize,
resourceQuery: this.resourceQuery,
optionsContext: this.rootContext || this.options.context,
}, (err, r) => {
if (r) {
Expand Down
3 changes: 3 additions & 0 deletions src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ const queue = asyncQueue(({ id, data }, taskCallback) => {
webpack: true,
'thread-loader': true,
sourceMap: data.sourceMap,
target: data.target,
minimize: data.minimize,
resourceQuery: data.resourceQuery,
},
}, (err, lrResult) => {
const {
Expand Down

0 comments on commit f3c7a2c

Please sign in to comment.