Skip to content

Commit 8cf0519

Browse files
committed
add origianl files
1 parent cfe12aa commit 8cf0519

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

docs/cn/global_configuration.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Global Configuration
2+
3+
electron-vue uses the [webpack](https://github.com/webpack/webpack) module loader system for pre-processing, bundling, and building your app. The default settings are rather common and should meet most of your needs. An additional `config.js` is provided in the root directory for quick adjustments. Further customization can be made by directly adjusting `webpack.main.config.js` and `webpack.renderer.config.js`.
4+
5+
#### `config.js`
6+
**Note**: Some options may differ based on the settings choosen during `vue-cli` scaffolding.
7+
8+
```js
9+
{
10+
// Name of electron app
11+
// Will be used in production builds
12+
name: 'app',
13+
14+
// Use ESLint
15+
// Further changes can be made in `.eslintrc.js`
16+
eslint: true,
17+
18+
// webpack-dev-server port
19+
port: 9080,
20+
21+
// electron-packager options
22+
// See `Building you app` for more info
23+
building: {
24+
arch: 'x64',
25+
asar: true,
26+
dir: path.join(__dirname, 'app'),
27+
icon: path.join(__dirname, 'app/icons/icon'),
28+
ignore: /\b(src|index\.ejs|icons)\b/,
29+
name: pkg.name,
30+
out: path.join(__dirname, 'builds'),
31+
overwrite: true,
32+
platform: process.env.PLATFORM_TARGET || 'all'
33+
}
34+
}
35+
```

docs/cn/using_the_file_structure.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Using the File Structure
2+
3+
electron-vue does its best to not force a particular project structure, but does try to follow common Vue & Electron practices. The following documentation describes common practices used in the original project structure.
4+
5+
**If you are unfamiliar with Electron's **`renderer`** and **`main`** processes, please give the first section of the **[**Quick Start**](http://electron.atom.io/docs/tutorial/quick-start)** a good read. It explains, in detail, their differences.**
6+
7+
### [Renderer Process](renderer-process.md)
8+
9+
### [Main Process](main-process.md)
10+
11+
12+

0 commit comments

Comments
 (0)