fixed webpack update and added documentation for new env variable

This commit is contained in:
vabene1111 2021-05-18 16:39:41 +02:00
parent 35338e2765
commit 8aa11836a3
2 changed files with 4 additions and 13 deletions

View File

@ -20,6 +20,10 @@ POSTGRES_USER=djangouser
POSTGRES_PASSWORD=
POSTGRES_DB=djangodb
# database connection string, when used overrides other database settings.
# format might vary depending on backend
#DATABASE_URL = engine://username:password@host:port/dbname
# the default value for the user preference 'fractions' (enable/disable fraction support)
# default: disabled=0
FRACTION_PREF_DEFAULT=0

View File

@ -226,18 +226,6 @@ else:
# Vue webpack settings
VUE_DIR = os.path.join(BASE_DIR, 'vue')
class CustomWebpackLoader(WebpackLoader):
def get_chunk_url(self, chunk):
asset = self.get_assets()['assets'][chunk['name']]
return super().get_chunk_url(asset)
def filter_chunks(self, chunks):
chunks = [chunk if isinstance(chunk, dict) else {'name': chunk} for chunk in chunks]
return super().filter_chunks(chunks)
WEBPACK_LOADER = {
'DEFAULT': {
'CACHE': not DEBUG,
@ -246,7 +234,6 @@ WEBPACK_LOADER = {
'POLL_INTERVAL': 0.1,
'TIMEOUT': None,
'IGNORE': [r'.+\.hot-update.js', r'.+\.map'],
'LOADER_CLASS': 'recipes.settings.CustomWebpackLoader',
}
}