Showing
1 changed file
with
1 additions
and
7 deletions
@@ -39,9 +39,6 @@ const dist = { | @@ -39,9 +39,6 @@ const dist = { | ||
39 | font: `${distRoot}/assets/font` | 39 | font: `${distRoot}/assets/font` |
40 | }; | 40 | }; |
41 | 41 | ||
42 | -// webpack 内嵌的样式中的雪碧图,写文件的时候会有冲突,这边使用单实例 | ||
43 | -let postcssSprites; | ||
44 | - | ||
45 | /** | 42 | /** |
46 | * postcss plugins for both dev and pro | 43 | * postcss plugins for both dev and pro |
47 | * @parem et Symbol | 44 | * @parem et Symbol |
@@ -96,12 +93,9 @@ const postcssPlugin = (et) => { | @@ -96,12 +93,9 @@ const postcssPlugin = (et) => { | ||
96 | }); | 93 | }); |
97 | } | 94 | } |
98 | 95 | ||
99 | - if (!postcssSprites) { | ||
100 | - postcssSprites = require('postcss-sprites').default(sprites); | ||
101 | - } | ||
102 | plugins = [ | 96 | plugins = [ |
103 | require('precss'), | 97 | require('precss'), |
104 | - postcssSprites, | 98 | + require('postcss-sprites').default(sprites), |
105 | require('postcss-assets')(assets), | 99 | require('postcss-assets')(assets), |
106 | require('postcss-calc'), | 100 | require('postcss-calc'), |
107 | require('postcss-pxtorem')({ | 101 | require('postcss-pxtorem')({ |
-
Please register or login to post a comment