Skip to content

Commit

Permalink
fix(webpack-runner): 修复h5.imageUrlLoaderOption失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly committed Mar 25, 2019
1 parent 443b1dc commit abbe23e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/taro-webpack-runner/src/util/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,21 +375,17 @@ const getModule = ({
test: fontReg,
use: {
urlLoader: getUrlLoader([defaultFontUrlLoaderOption, {
options: {
name: `${staticDirectory}/fonts/[name].[ext]`,
...fontUrlLoaderOption
}
name: `${staticDirectory}/fonts/[name].[ext]`,
...fontUrlLoaderOption
}])
}
}
rule.image = {
test: imageReg,
use: {
urlLoader: getUrlLoader([defaultImageUrlLoaderOption, {
options: {
name: `${staticDirectory}/images/[name].[ext]`,
...imageUrlLoaderOption
}
name: `${staticDirectory}/images/[name].[ext]`,
...imageUrlLoaderOption
}])
}
}
Expand Down

0 comments on commit abbe23e

Please sign in to comment.