| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- /**
- * ee-bin 配置
- * 仅适用于开发环境
- */
- module.exports = {
- /**
- * development serve ("frontend" "electron" )
- * ee-bin dev
- */
- dev: {
- frontend: {
- directory: './frontend',
- cmd: 'npm',
- args: ['run', 'dev'],
- protocol: 'http://',
- hostname: 'localhost',
- port: 8080,
- indexPath: 'index.html'
- },
- electron: {
- directory: './',
- cmd: 'electron',
- args: ['.', '--env=local'],
- }
- },
- /**
- * 前端构建
- * ee-bin build
- */
- build: {
- directory: './frontend',
- cmd: 'npm',
- args: ['run', 'build'],
- },
- /**
- * 移动资源
- * ee-bin rd
- */
- rd: {
- dist: './frontend/dist',
- target: './public/dist'
- },
- /**
- * 预发布模式(prod)
- * ee-bin start
- */
- start: {
- directory: './',
- cmd: 'electron',
- args: ['.', '--env=prod']
- },
- /**
- * 加密
- */
- encrypt: {
- type: 'confusion',
- files: [
- 'electron/**/*.(js|json)',
- '!electron/config/encrypt.js',
- '!electron/config/nodemon.json',
- '!electron/config/builder.json',
- '!electron/config/bin.json',
- ],
- fileExt: ['.js'],
- confusionOptions: {
- compact: true,
- stringArray: true,
- stringArrayEncoding: ['none'],
- deadCodeInjection: false,
- }
- }
- };
|