akfun 3.2.20-vue3.1 → 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.
|
|
3
|
+
"version": "3.2.21",
|
|
4
4
|
"description": "前端脚手架:支持Vue技术栈和react技术栈",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"前端工程",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"@svgr/webpack": "^6.2.1",
|
|
79
79
|
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
|
80
80
|
"@typescript-eslint/parser": "^5.10.2",
|
|
81
|
+
"@vue/compiler-sfc": "^3.2.29",
|
|
81
82
|
"@vue/eslint-config-typescript": "^10.0.0",
|
|
82
83
|
"autoprefixer": "^10.4.2",
|
|
83
84
|
"babel-loader": "^8.2.3",
|
|
@@ -149,9 +150,9 @@
|
|
|
149
150
|
"typescript": "^4.5.5",
|
|
150
151
|
"url-loader": "^4.1.1",
|
|
151
152
|
"vue-eslint-parser": "^8.2.0",
|
|
152
|
-
"vue-loader": "^
|
|
153
|
+
"vue-loader": "^15.9.8",
|
|
153
154
|
"vue-style-loader": "^4.1.3",
|
|
154
|
-
"
|
|
155
|
+
"vue-template-compiler": "^2.6.14",
|
|
155
156
|
"webpack": "^5.68.0",
|
|
156
157
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
157
158
|
"webpack-cli": "^4.9.2",
|
|
@@ -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 为
|
|
50
|
+
// cssLoaderUrl 为false 则不处理 css 中的 url
|
|
50
51
|
return options.cssLoaderUrl;
|
|
51
52
|
}
|
|
52
53
|
return true;
|
|
@@ -3,8 +3,7 @@ const fs = require('fs');
|
|
|
3
3
|
const webpack = require('webpack');
|
|
4
4
|
// const tsImportPluginFactory = require('ts-import-plugin'); // 按需加载lib库组件代码
|
|
5
5
|
const StyleLintPlugin = require('stylelint-webpack-plugin');
|
|
6
|
-
|
|
7
|
-
const { VueLoaderPlugin } = require('vue-loader'); // vue3.0
|
|
6
|
+
const VueLoaderPlugin = require('vue-loader/lib/plugin');
|
|
8
7
|
const nodeExternals = require('webpack-node-externals');
|
|
9
8
|
// const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
|
|
10
9
|
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
|