UNPKG

1.76 kBJavaScriptView Raw
1'use strict'
2
3module.exports = {
4 hash: {
5 main: true,
6 chunk: true
7 },
8 globalEnv: {},
9 // 预渲染页面,直出首屏模板,依赖 Puppeteer
10 prerender: false,
11 publicPath: {
12 // 考虑到 hybrid 离线包,默认使用相对路径
13 default: './'
14 },
15 sourceMap: false,
16 tsImportLibs: [],
17 // 编译配置
18 compiler: {
19 // 提取 css 到额外的文件
20 cssExtract: true,
21 // 多版本依赖检测
22 checkDuplicatePackage: true,
23 // 默认启用 runtime,仅允许 vue 文件内的模板
24 vueRuntimeOnly: true,
25 // @TODO 移除 console
26 dropConsole: false,
27 // 分离 initial chunk
28 splitChunks: true,
29 // 分离 SNC
30 splitSNC: false
31 },
32 webpackPluginsHandler: (command, webpackConf) => webpackConf,
33 proxyTable: {},
34 babelPlugins: [],
35 ciConfig: {
36 privateToken: '',
37 // hb config name
38 zip_config_name: 'sina_news'
39 },
40 // 通知 babel 编译 node_module 里额外的模块
41 esm: ['@mfelibs'],
42 // 打包 dll
43 vendor: [],
44 devServer: {
45 open: true,
46 port: 3022,
47 https: false,
48 proxy: {}
49 },
50 ftp: {
51 host: '', // 主机
52 port: 0,
53 user: '',
54 password: '',
55 reload: true, // 刷新缓存
56 openBrowser: true, // 上传完毕后自动打开浏览器
57 remotePath: {
58 version: false
59 },
60 hybridPublish: true, // dev 环境 hybrid 资源包发布
61 hybridAutoVersion: true // dev 环境自动更新版本号
62 },
63 // hybrid 项目配置,存在此属性时,将会生成 zip 包
64 // 默认保持缺省,dev deploy 做存在验证
65 hybrid: undefined,
66 // tinypng keys
67 // https://tinypng.com/developers
68 tinifyKeys: [],
69 marax: {
70 // bar 状态条,text 详细信息
71 progress: 'text',
72 inspire: false
73 }
74}