提交 5822aeac 编写于 作者: zhangpingchuan's avatar zhangpingchuan

zpc

上级 90c3c3eb
<#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')
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
module.exports = {
presets: [
'@vue/app'
]
}
<#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"
]
}
<#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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册