|
@@ -25,10 +25,13 @@ function getEntry() {
|
|
|
var fileList = filepath.split("/");
|
|
var fileList = filepath.split("/");
|
|
|
var fileName = fileList[fileList.length - 2];
|
|
var fileName = fileList[fileList.length - 2];
|
|
|
publicPath = '/' + fileName + '/'
|
|
publicPath = '/' + fileName + '/'
|
|
|
|
|
+ console.log(fileName, 'fileName')
|
|
|
entries[fileName] = {
|
|
entries[fileName] = {
|
|
|
entry: `src/views/${fileName}/main.js`,
|
|
entry: `src/views/${fileName}/main.js`,
|
|
|
// 模板来源
|
|
// 模板来源
|
|
|
- template: `public/index.html`,
|
|
|
|
|
|
|
+ template: `publ
|
|
|
|
|
+ ic/index.html`,
|
|
|
|
|
+ title: fileName == 'zhulao' ? '邹平养老' : '邹平未保客户端',
|
|
|
// 在 dist/index.html 的输出
|
|
// 在 dist/index.html 的输出
|
|
|
filename: `${fileName}.html`,
|
|
filename: `${fileName}.html`,
|
|
|
};
|
|
};
|