From f234dc9544684f32d57891eb024735684f5a5923 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 25 Aug 2021 17:58:55 +0200 Subject: [PATCH] Fixed packaging issues. --- MANIFEST.in | 1 - frontend/vue.config.js | 6 +++++- setup.py | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 01c9bbf19..66fe4dd44 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,7 +1,6 @@ include README.rst CONTRIBUTING.rst LICENSE requirements.txt include modoboa/admin/tests/dovecot recursive-include modoboa *.html *.js *.css *.png *.po *.mo *.json *.gif *.ttf *.woff *.woff2 -recursive-include frontend/dist *.js *.json *.ico *.html *.css *.png *.map recursive-include modoboa/core/templates *.tpl recursive-include modoboa/core/commands/templates *.tpl recursive-include doc * diff --git a/frontend/vue.config.js b/frontend/vue.config.js index dac3abd47..04e0c0436 100644 --- a/frontend/vue.config.js +++ b/frontend/vue.config.js @@ -8,5 +8,9 @@ module.exports = { }, transpileDependencies: [ 'vuetify' - ] + ], + publicPath: process.env.NODE_ENV === 'production' + ? '/new-admin/' + : '/', + outputDir: '../modoboa/frontend_dist' } diff --git a/setup.py b/setup.py index eddc07e7e..bb41920b5 100644 --- a/setup.py +++ b/setup.py @@ -73,7 +73,8 @@ if __name__ == "__main__": "Topic :: Internet :: WWW/HTTP", ], keywords="email", - packages=find_packages(exclude=["doc", "test_data", "test_project"]), + packages=find_packages( + exclude=["doc", "test_data", "test_project", "frontend"]), include_package_data=True, zip_safe=False, scripts=["bin/modoboa-admin.py"],