fix/remove automatic main entry in nc-webpack-config

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
Julien Veyssier 2020-09-02 11:14:36 +02:00
Родитель 4a5c960b05
Коммит d879ba4e23
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4141FEE162030638
3 изменённых файлов: 10 добавлений и 6 удалений

6
package-lock.json сгенерированный
Просмотреть файл

@ -3630,9 +3630,9 @@
}
},
"@nextcloud/webpack-vue-config": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@nextcloud/webpack-vue-config/-/webpack-vue-config-1.1.0.tgz",
"integrity": "sha512-3eDbH05tlkfM12syuM36QS+xU1r80iX21PZ5tN+/O9Ekto2psmt+vf7Vgs5JX20M97Uy89POQ09A8tQUj83Yuw=="
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@nextcloud/webpack-vue-config/-/webpack-vue-config-1.4.0.tgz",
"integrity": "sha512-VSs9FXuCJMEWKt3JG6zjSj5FiIQHkA3fTrYFP2Qa+8bmqBmfOpYJkUpJPXHvUnJyN7SLHIV0DJo1YB4olOQpaQ=="
},
"@nodelib/fs.scandir": {
"version": "2.1.3",

Просмотреть файл

@ -35,7 +35,7 @@
"@nextcloud/router": "^1.1.0",
"@nextcloud/auth": "^1.3.0",
"@nextcloud/vue": "^2.6.3",
"@nextcloud/webpack-vue-config": "^1.1.0",
"@nextcloud/webpack-vue-config": "^1.4.0",
"@nextcloud/vue-dashboard": "^0.1.8",
"@nextcloud/axios": "^1.3.3",
"@nextcloud/dialogs": "^1.4.0",
@ -51,7 +51,7 @@
"devDependencies": {
"@nextcloud/eslint-config": "^2.2.0",
"@nextcloud/eslint-plugin": "^1.4.0",
"@nextcloud/webpack-vue-config": "^1.1.0",
"@nextcloud/webpack-vue-config": "^1.4.0",
"stylelint-webpack-plugin": "^2.1.0",
"stylelint": "^13.6.1",
"webpack-merge": "^5.1.1",

Просмотреть файл

@ -3,6 +3,10 @@ const path = require('path')
const webpack = require('webpack')
const webpackConfig = require('@nextcloud/webpack-vue-config')
if (webpackConfig.entry && webpackConfig.entry.main) {
delete webpackConfig.entry.main
}
const config = {
entry: {
personalSettings: path.join(__dirname, 'src', 'personalSettings.js'),
@ -19,4 +23,4 @@ const config = {
},
}
module.exports = merge(config, webpackConfig)
module.exports = merge(config, webpackConfig)