akfun 3.2.6 → 3.2.7

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.6",
3
+ "version": "3.2.7",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
@@ -155,6 +155,7 @@
155
155
  "webpack-hot-middleware": "^2.25.1",
156
156
  "webpack-merge": "^5.8.0",
157
157
  "webpack-node-externals": "^3.0.0",
158
+ "@svgr/webpack": "^6.2.1",
158
159
  "yargs": "^12.0.5"
159
160
  },
160
161
  "devDependencies": {
@@ -122,6 +122,7 @@ module.exports = (_curEnvConfig, _akfunConfig) => {
122
122
  */
123
123
  test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
124
124
  type: 'asset',
125
+ issuer: /\.s?css$/,
125
126
  parser: {
126
127
  dataUrlCondition: {
127
128
  maxSize: 2 * 1024 //data转成url的条件,也就是转成bas64的条件,maxSize相当于limit
@@ -132,6 +133,11 @@ module.exports = (_curEnvConfig, _akfunConfig) => {
132
133
  filename: utils.assetsPath('img/[name].[hash:7][ext]') //[name]指原来的名字,[hash:6]取哈希的前六位,[ext]指原来的扩展名
133
134
  }
134
135
  },
136
+ {
137
+ test: /\.svg$/,
138
+ issuer: /\.[jt]sx?$/,
139
+ use: ['@svgr/webpack']
140
+ },
135
141
  {
136
142
  // 视频音频资源
137
143
  test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,