# Path: webpack/conf.py
# class Conf(conf.Conf):
#     OUTPUT_ROOT = None
#     STATIC_URL = None
#     OUTPUT_DIR = 'webpack_assets'
#     CONFIG_DIRS = None
#     CONTEXT = None
#     BUILD_URL = 'http://127.0.0.1:9009/build'
#     WATCH = False
#     AGGREGATE_TIMEOUT = 200
#     POLL = None
#     HMR = False
#     CACHE = True
#     CACHE_DIR = None
#     MANIFEST = None
#     USE_MANIFEST = False
#     MANIFEST_PATH = None
#     MANIFEST_SETTINGS = {
#         # Force the compiler to connect to the build server
#         'USE_MANIFEST': False,
#         # Ensure that the server does not add a hmr runtime
#         'HMR': False,
#     }
#     def get_path_to_output_dir(self):
#     def get_public_path(self):


from django.core.files.storage import FileSystemStorage
from django.contrib.staticfiles.finders import BaseStorageFinder
from .conf import settings


class WebpackFileStorage(FileSystemStorage):
    """
    Standard file system storage for files handled by webpack.
    """
    def __init__(self, location=None, base_url=None, *args, **kwargs):
        if location is None:
            location = settings.OUTPUT_ROOT
        if base_url is None:

# Path: webpack/conf.py
# class Conf(conf.Conf):
#     OUTPUT_ROOT = None
#     STATIC_URL = None
#     OUTPUT_DIR = 'webpack_assets'
#     CONFIG_DIRS = None
#     CONTEXT = None
#     BUILD_URL = 'http://127.0.0.1:9009/build'
#     WATCH = False
#     AGGREGATE_TIMEOUT = 200
#     POLL = None
#     HMR = False
#     CACHE = True
#     CACHE_DIR = None
#     MANIFEST = None
#     USE_MANIFEST = False
#     MANIFEST_PATH = None
#     MANIFEST_SETTINGS = {
#         # Force the compiler to connect to the build server
#         'USE_MANIFEST': False,
#         # Ensure that the server does not add a hmr runtime
#         'HMR': False,
#     }
#     def get_path_to_output_dir(self):
#     def get_public_path(self):


# Path: webpack/django_integration.py
from django.core.files.storage import FileSystemStorage
from django.contrib.staticfiles.finders import BaseStorageFinder
from .conf import settings



class WebpackFileStorage(FileSystemStorage):
    """
    Standard file system storage for files handled by webpack.
    """
    def __init__(self, location=None, base_url=None, *args, **kwargs):
        if location is None:
            location = settings.OUTPUT_ROOT
        if base_url is None:

            base_url = settings.STATIC_URL