Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
inori_templ
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zpc
inori_templ
提交
5822aeac
提交
5822aeac
编写于
11月 06, 2019
作者:
zhangpingchuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zpc
上级
90c3c3eb
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
147 行增加
和
0 行删除
+147
-0
main.js.ftl
APP/src/main.js.ftl
+31
-0
babel.config.js.ftl
babel.config.js.ftl
+8
-0
package.json.ftl
package.json.ftl
+56
-0
vue.config.js.ftl
vue.config.js.ftl
+52
-0
未找到文件。
APP/src/main.js.ftl
0 → 100644
浏览文件 @
5822aeac
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
import Vue from 'vue';
import App from './App.vue';
import VueI18n from 'vue-i18n';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import moment from 'moment';
import 'moment/locale/zh-cn';
moment.locale('zh-cn');
import AppRegister from '@components/app-register.js';
Vue.config.productionTip = false
Vue.use(VueI18n);
Vue.use(Antd);
Vue.use(AppRegister);
const i18n = new VueI18n({
locale: 'zh', // 语言标识
})
new Vue({
i18n,
render: h => h(App),
}).$mount('#app')
babel.config.js.ftl
0 → 100644
浏览文件 @
5822aeac
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
module.exports = {
presets: [
'@vue/app'
]
}
package.json.ftl
0 → 100644
浏览文件 @
5822aeac
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
{
"name": "super-form-two",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"ant-design-vue": "^1.3.16",
"async-validator": "^3.1.0",
"axios": "^0.19.0",
"core-js": "^2.6.5",
"moment": "^2.24.0",
"rxjs": "6.4.0",
"tinymce": "4.8.5",
"vue": "^2.6.10",
"vue-i18n": "^8.14.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.11.0",
"@vue/cli-plugin-eslint": "^3.11.0",
"@vue/cli-service": "^3.11.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"vue-template-compiler": "^2.6.10"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
vue.config.js.ftl
0 → 100644
浏览文件 @
5822aeac
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
const path = require('path');
const os = require('os');
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
publicPath: './',
// 输出文件目录
outputDir: 'dist',
// 去除 map 文件
productionSourceMap: false,
devServer: {
host: '0.0.0.0',
port: 8111,
compress: true,
disableHostCheck: true,
},
pages: {
index: {
// page 的入口
entry: 'src/main.js',
// 模板来源
template: 'public/index.html',
// 在 dist/index.html 的输出
filename: 'index.html',
// 当使用 title 选项时,
// template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
title: '超级表单首页',
}
},
chainWebpack: (config) => {
const pages = ['index'];
pages.forEach((str) => {
// 删除自动计算预加载资源
config.plugins.delete('preload-' + str);
// 删除预加载资源
config.plugins.delete('prefetch-' + str);
});
config.resolve.alias
.set('@components', resolve('src/components'))
.set('@utils', resolve('src/common/utils'))
.set('@pages', resolve('src/pages'))
.set('@forms', resolve('src/forms'))
.set('@models',resolve('src/common/models'))
.set('@service',resolve('src/common/service'))
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录