akfun 3.2.20 → 3.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akfun",
3
- "version": "3.2.20",
3
+ "version": "3.2.21",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
@@ -39,14 +39,15 @@ exports.cssLoaders = function (options) {
39
39
  // url: false, // enables/disables url()/image-set() functions handling
40
40
  url: {
41
41
  filter: (url, resourcePath) => {
42
+ if (options.cssLoaderUrlDir && resourcePath.includes(options.cssLoaderUrlDir)) {
43
+ // 指定处理某类路径下的中相关 css 文件中的 url
44
+ return true;
45
+ }
42
46
  if (url.startsWith('data:')) {
43
47
  // 不处理 css 中的 bas64 url
44
48
  return false;
45
- } else if (options.cssLoaderUrlDir && resourcePath.includes(options.cssLoaderUrlDir)) {
46
- // 指定处理某类路径下的中相关 css 文件中的 url
47
- return true;
48
49
  } else if (options.cssLoaderUrl !== undefined) {
49
- // cssLoaderUrl 为true 则不处理 css 中的 url
50
+ // cssLoaderUrl 为false 则不处理 css 中的 url
50
51
  return options.cssLoaderUrl;
51
52
  }
52
53
  return true;