fixed webpack update and added documentation for new env variable
This commit is contained in:
parent
35338e2765
commit
8aa11836a3
@ -20,6 +20,10 @@ POSTGRES_USER=djangouser
|
|||||||
POSTGRES_PASSWORD=
|
POSTGRES_PASSWORD=
|
||||||
POSTGRES_DB=djangodb
|
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)
|
# the default value for the user preference 'fractions' (enable/disable fraction support)
|
||||||
# default: disabled=0
|
# default: disabled=0
|
||||||
FRACTION_PREF_DEFAULT=0
|
FRACTION_PREF_DEFAULT=0
|
||||||
|
@ -226,18 +226,6 @@ else:
|
|||||||
# Vue webpack settings
|
# Vue webpack settings
|
||||||
VUE_DIR = os.path.join(BASE_DIR, 'vue')
|
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 = {
|
WEBPACK_LOADER = {
|
||||||
'DEFAULT': {
|
'DEFAULT': {
|
||||||
'CACHE': not DEBUG,
|
'CACHE': not DEBUG,
|
||||||
@ -246,7 +234,6 @@ WEBPACK_LOADER = {
|
|||||||
'POLL_INTERVAL': 0.1,
|
'POLL_INTERVAL': 0.1,
|
||||||
'TIMEOUT': None,
|
'TIMEOUT': None,
|
||||||
'IGNORE': [r'.+\.hot-update.js', r'.+\.map'],
|
'IGNORE': [r'.+\.hot-update.js', r'.+\.map'],
|
||||||
'LOADER_CLASS': 'recipes.settings.CustomWebpackLoader',
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user