akfun 1.5.18 → 1.5.19
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": "1.5.
|
|
3
|
+
"version": "1.5.19",
|
|
4
4
|
"description": "前端脚手架:支持Vue技术栈和react技术栈",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"前端工程",
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"@rollup/plugin-node-resolve": "^9.0.0",
|
|
74
74
|
"@typescript-eslint/eslint-plugin": "^3.9.0",
|
|
75
75
|
"@typescript-eslint/parser": "^3.9.0",
|
|
76
|
-
"eslint-config-prettier": "^7.2.0",
|
|
77
76
|
"@vue/compiler-sfc": "^3.0.0-rc.10",
|
|
78
77
|
"@vue/eslint-config-typescript": "^5.0.2",
|
|
79
78
|
"autoprefixer": "^9.8.0",
|
|
@@ -92,6 +91,7 @@
|
|
|
92
91
|
"es6-promise-polyfill": "^1.2.0",
|
|
93
92
|
"eslint": "^7.2.0",
|
|
94
93
|
"eslint-config-airbnb-base": "^14.1.0",
|
|
94
|
+
"eslint-config-prettier": "^7.2.0",
|
|
95
95
|
"eslint-friendly-formatter": "^4.0.1",
|
|
96
96
|
"eslint-import-resolver-webpack": "^0.12.1",
|
|
97
97
|
"eslint-loader": "^4.0.2",
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
"http-proxy-middleware": "^1.0.4",
|
|
113
113
|
"inquirer": "^7.3.3",
|
|
114
114
|
"mini-css-extract-plugin": "^0.9.0",
|
|
115
|
+
"monaco-editor-webpack-plugin": "6.0.0",
|
|
115
116
|
"node-sass": "^4.14.1",
|
|
116
117
|
"opn": "^6.0.0",
|
|
117
118
|
"optimize-css-assets-webpack-plugin": "^5.0.3",
|
|
@@ -152,8 +153,8 @@
|
|
|
152
153
|
"webpack-dev-middleware": "^3.7.2",
|
|
153
154
|
"webpack-hot-middleware": "^2.25.0",
|
|
154
155
|
"webpack-merge": "^4.2.2",
|
|
155
|
-
"
|
|
156
|
-
"
|
|
156
|
+
"webpack-node-externals": "^3.0.0",
|
|
157
|
+
"yargs": "^12.0.2"
|
|
157
158
|
},
|
|
158
159
|
"devDependencies": {
|
|
159
160
|
"@commitlint/cli": "^8.3.5",
|
package/src/config/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const CompressionWebpackPlugin = require('compression-webpack-plugin');
|
|
|
11
11
|
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
|
|
12
12
|
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
|
|
13
13
|
const nodeExternals = require('webpack-node-externals');
|
|
14
|
+
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
|
14
15
|
|
|
15
16
|
const utils = require('./loaderUtils');
|
|
16
17
|
const { resolve } = require('../utils/pathUtils'); // 统一路径解析
|
|
@@ -176,6 +177,11 @@ module.exports = (akfunConfig) => {
|
|
|
176
177
|
})
|
|
177
178
|
);
|
|
178
179
|
}
|
|
180
|
+
|
|
181
|
+
// 是否开启
|
|
182
|
+
if (curEnvConfig.openMonacoWebpackPlugin) {
|
|
183
|
+
webpackProdConfig.plugins.push(new MonacoWebpackPlugin());
|
|
184
|
+
}
|
|
179
185
|
|
|
180
186
|
if (curEnvConfig.bundleAnalyzerReport) {
|
|
181
187
|
webpackProdConfig.plugins.push(new BundleAnalyzerPlugin());
|