mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 23:41:01 +00:00
fix static package_data for offline mode
package_data 'static/*' won`t include sub directories so offline mode would result in 404 for static resources under js, css, fonts
This commit is contained in:
parent
90de8e22a0
commit
f180d750fd
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
@ -13,7 +13,7 @@ setup(
|
|||
packages=find_packages(),
|
||||
# packages=find_packages(include=['openpredict']),
|
||||
# package_dir={'openpredict': 'openpredict'},
|
||||
package_data={'': ['static/*', 'templates/*']},
|
||||
package_data={'': ['static/*', 'static/**/*', 'templates/*']},
|
||||
include_package_data=True,
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
|
|
Loading…
Reference in a new issue