File tree Expand file tree Collapse file tree 4 files changed +53
-50
lines changed
Expand file tree Collapse file tree 4 files changed +53
-50
lines changed Original file line number Diff line number Diff line change 1-
2- // eslint-disable-next-line @typescript-eslint/no-var-requires
3- const path = require ( 'path' ) ;
4- // eslint-disable-next-line @typescript-eslint/no-var-requires
5- const styleJson = require ( './src/styles/antd.json' ) ;
6- // 转为es6模块 import项目运行不起来
7-
81module . exports = ( api , options ) => {
92 api . render ( './template' )
103 api . extendPackage ( {
@@ -33,45 +26,4 @@ module.exports = (api, options) => {
3326
3427 }
3528 } )
36- // 基础 vue.config.js 参数设置
37- api . extendPackage ( {
38- vue : {
39- lintOnSave : false ,
40- // baseUrl Deprecated since Vue CLI 3.3, 使用 publicPath 替代
41- publicPath : `/${ options . productName } ` ,
42- devServer : {
43- proxy : {
44- '/' : {
45- target : options . serverPath ,
46- changeOrigin : true ,
47- ws : false ,
48- } ,
49- } ,
50- } ,
51- pluginOptions : {
52- toTypes : {
53- host : `${ options . serverPath } /${ options . productName } /v2/api-docs` ,
54- TypesPath : './src/types/api.ts' ,
55- } ,
56- ftp : {
57- host : '自行配置' ,
58- // 须自行配置路径
59- remoteFtpPath : 'DISK-D/findsoft_test/tomcat8/webapps/eg/' ,
60- } ,
61- } ,
62- css : {
63- loaderOptions : {
64- less : {
65- lessOptions : {
66- modifyVars : styleJson ,
67- javascriptEnabled : true ,
68- } ,
69- } ,
70- stylus : {
71- import : path . resolve ( __dirname , './src/styles/variable.styl' ) ,
72- } ,
73- } ,
74- } ,
75- } ,
76- } )
7729}
Original file line number Diff line number Diff line change 1+ src/types/*.ts
Original file line number Diff line number Diff line change 1+ // eslint-disable-next-line @typescript-eslint/no-var-requires
2+ const path = require ( 'path' ) ;
3+ // eslint-disable-next-line @typescript-eslint/no-var-requires
4+ const styleJson = require ( './src/styles/antd.json' ) ;
5+ // 转为es6模块 import项目运行不起来
6+
7+ module . exports = {
8+ // 解决按需引入插件css引入失败
9+
10+ lintOnSave : false ,
11+ // baseUrl Deprecated since Vue CLI 3.3, 使用 publicPath 替代
12+ publicPath :'/<%= options.productName %>' ,
13+ devServer : {
14+ proxy : {
15+ '/' : {
16+ target : '<%= options.serverPath %>' ,
17+ changeOrigin : true ,
18+ ws : false ,
19+ } ,
20+ } ,
21+ } ,
22+ pluginOptions : {
23+ toTypes : {
24+ host : '<%= options.serverPath %>/<%= options.productName %>/v2/api-docs' ,
25+ TypesPath : './src/types/api.ts' ,
26+ } ,
27+ ftp : {
28+ host : '自行配置' ,
29+ // 须自行配置路径
30+ remoteFtpPath : 'DISK-D/findsoft_test/tomcat8/webapps/eg/' ,
31+ } ,
32+ } ,
33+ css : {
34+ loaderOptions : {
35+ less : {
36+ lessOptions : {
37+ modifyVars : styleJson ,
38+ javascriptEnabled : true ,
39+ } ,
40+ } ,
41+ stylus : {
42+ import : path . resolve ( __dirname , './src/styles/variable.styl' ) ,
43+ } ,
44+ } ,
45+ } ,
46+ } ;
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-cli-plugin-findsoft-basic-v3" ,
3- "version" : " 1.1.2 " ,
4- "description" : " 更新 " ,
3+ "version" : " 1.2.0 " ,
4+ "description" : " findsoft-前端基础框架 " ,
55 "main" : " index.js" ,
66 "scripts" : {
77 "build" :" sudo ./build/build.sh && ./build/build.bat" ,
88 "test" : " echo \" Error: no test specified\" && exit 1"
99 },
10+ "repository" : {
11+ "type" : " git" ,
12+ "url" : " git+https://github.com/phpjavac/vue-cli-plugin-findsoft-basic-v3.git"
13+ },
1014 "author" : " " ,
1115 "license" : " ISC"
1216}
You can’t perform that action at this time.
0 commit comments