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

zpc

上级 e288875e
流水线 #204 已失败 ,包含阶段
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# super-form-two
## Project setup
```
yarn install
```
### Compiles and hot-reloads for development
```
yarn serve
```
### Compiles and minifies for production
```
yarn run build
```
### Run your tests
```
yarn run test
```
### Lints and fixes files
```
yarn run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
module.exports = {
presets: [
'@vue/app'
]
}
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'))
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册