diff --git a/packages/webpack-uni-pages-loader/lib/platforms/quickapp-light/index.js b/packages/webpack-uni-pages-loader/lib/platforms/quickapp-light/index.js index 151befba4fcda1fd8970b890731b826c0155a959..d25bed0611a797453752822990d06625590744b9 100644 --- a/packages/webpack-uni-pages-loader/lib/platforms/quickapp-light/index.js +++ b/packages/webpack-uni-pages-loader/lib/platforms/quickapp-light/index.js @@ -5,8 +5,9 @@ */ module.exports = function (pagesJson, manifestJson) { const { - app - } = require('../mp')(pagesJson, manifestJson) + app, + project + } = require('../mp')(pagesJson, manifestJson, require('./project.config.json')) const baseJson = { minPlatformVersion: 1053 @@ -19,6 +20,12 @@ module.exports = function (pagesJson, manifestJson) { if (!app.content.package) { app.content.package = manifestJson.name - } - return [app] + } + + project.name = 'quickapp.config' + + return [ + app, + project + ] } diff --git a/packages/webpack-uni-pages-loader/lib/platforms/quickapp-light/project.config.json b/packages/webpack-uni-pages-loader/lib/platforms/quickapp-light/project.config.json new file mode 100644 index 0000000000000000000000000000000000000000..016f0894b3464d4bd221691317e802a25c277e94 --- /dev/null +++ b/packages/webpack-uni-pages-loader/lib/platforms/quickapp-light/project.config.json @@ -0,0 +1,35 @@ +{ + "description": "项目配置文件。", + "packOptions": { + "ignore": [] + }, + "setting": { + "urlCheck": true, + "es6": false, + "postcss": false, + "minified": false, + "newFeature": true + }, + "compileType": "miniprogram", + "libVersion": "", + "appid": "touristappid", + "projectname": "", + "condition": { + "search": { + "current": -1, + "list": [] + }, + "conversation": { + "current": -1, + "list": [] + }, + "game": { + "current": -1, + "list": [] + }, + "miniprogram": { + "current": -1, + "list": [] + } + } +}