You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-5Lines changed: 44 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
# vue-cli-plugin-multiple-page
2
2
3
-
> build/watch multiple page one time for vue-cli
3
+
> A plugin that bundle multiple page based-on vue-cli. Unlike `vue-cli's pages` configuration, it's handled by sharding multiple pages into different webpack configurations
4
+
5
+
## Usage
6
+
7
+
Install the plugin in your project created by vue-cli, if not please refer to [Not Vue-CLI created Project](#not-vue-cli-created-project)
The command like `build-multi`, but it in watch mode
69
+
This command, like the `vue-cli-service watch` command, It listens for changes to the entry file of configuration by passing the specified `--key` to bundle (in `watch` mode)
62
70
63
-
## Custom Config
71
+
## Customize Configuration
64
72
65
-
This plugin provide custom config file that you can specify entries manually in Programmatically. You can create a file named`multiple-page.config.js`, that content like below:
73
+
The plugin provides the ability to customize the configuration so that you can programmatically expose the configuration of multiple pages by creating a file called`multiple-page.config.js`:
66
74
67
75
```js
68
76
constpath=require('path')
@@ -89,6 +97,37 @@ module.exports = {
89
97
90
98
If you have both files (`Views.json`、`multiple-page.config.js`) in your root directory, The `multiple-page.config.js` file have a higher priority.
91
99
100
+
## Not Vue-CLI created Project
101
+
102
+
If your project is not created by vue-cli. please refer to the following steps. (This scenario is suitable for older, multiple-page projects that are rendered primarily by backend template engines)
103
+
104
+
`step1`: Installing these dependencies in your project if you haven't installed them
0 commit comments