Skip to content

Commit 8432bc9

Browse files
authored
chore: 传递postcss-url 的配置 (#18306)
1 parent e5958e9 commit 8432bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/taro-webpack5-runner/src/postcss/postcss.mini.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const getDefaultPostcssConfig = function ({
6464
['autoprefixer', autoprefixerOption, require('autoprefixer')],
6565
['postcss-pxtransform', pxtransformOption, require('postcss-pxtransform')],
6666
['postcss-alias', { config: { alias } }, require('./postcss-alias').default],
67-
['postcss-url', defaultUrlOption, require('postcss-url')],
67+
['postcss-url', { ...defaultUrlOption, ...(options?.url || {}) }, require('postcss-url')],
6868
['postcss-html-transform', htmltransformOption, require('postcss-html-transform')],
6969
...Object.entries(options)
7070
]

0 commit comments

Comments
 (0)