Authored by ccbikai

回复雪碧图打包

... ... @@ -39,9 +39,6 @@ const dist = {
font: `${distRoot}/assets/font`
};
// webpack 内嵌的样式中的雪碧图,写文件的时候会有冲突,这边使用单实例
let postcssSprites;
/**
* postcss plugins for both dev and pro
* @parem et Symbol
... ... @@ -96,12 +93,9 @@ const postcssPlugin = (et) => {
});
}
if (!postcssSprites) {
postcssSprites = require('postcss-sprites').default(sprites);
}
plugins = [
require('precss'),
postcssSprites,
require('postcss-sprites').default(sprites),
require('postcss-assets')(assets),
require('postcss-calc'),
require('postcss-pxtorem')({
... ...