《玩转webpack》 第二章 基础篇: webpack 基础用法'/dist' } }; ## 核心概念之 Loaders webpack 开箱即用只支持 JS 和 JSON 两种文件类型,通过 Loaders 去支持其它文件类型并且把它们转化成有效的模块,并且可以添加到依赖图中。 本身是一个函数,接受源文件作为参数,返回转换的结果。 ## 常见的 Loaders 有哪些? |名称|描述| |---|---| |babel-lo |ts-loader|将TS转换成JS| |file-loader|进行图片、字体等的打包| |raw-loader|将文件以字符串的形式导入| |thread-loader|多进程打包JS和CSS| ## Loaders 的用法 const path = require('path'); module.exports = { output: { filename: 'bundle0 码力 | 41 页 | 2.52 MB | 2 年前3
The Weblate Manual 4.4.1], "loaders": [ (" "django.template.loaders.cached.Loader", [ "django.template.loaders.filesystem.Loader", "django.template.loaders.app_directories ], }, ], ], ## See also django.template.loaders.cached.Loader [https://docs.djangoproject.com/en/stable/ref/templates/api/#django.template.loaders.cached.Loader] ## Running maintenance tasks For _TEMPLATE_LOADERS = [ "django.template.loaders.filesystem.Loader", "django.template.loaders.app_directories.Loader" ] if not DEBUG: _TEMPLATE_LOADERS = [0 码力 | 703 页 | 9.34 MB | 2 年前3
The Weblate Manual 4.4"loaders": [ ( "django.template.loaders.cached.Loader", [ "django.template.loaders.饶子华 ] } ] }, 1 ## See also django.template.loaders.cached.Loader [https://docs.djangoproject.com/en/stable/ref/templates/api/#django.template.loaders.cached.Loader] ## Running maintenance tasks For _TEMPLATE_LOADERS = [ "django.template.loaders.filesystem.Loader", "django.template.loaders.app_directories.Loader" ] if not DEBUG: _TEMPLATE_LOADERS = [0 码力 | 697 页 | 9.33 MB | 2 年前3
The Weblate Manual 4.3.1'loaders': [ ('django.template.loaders.cached.Loader', [ 'django.template.loaders.饶子华.loader', } ] ] }, ] See also django.template.loaders.cached.Loader [https://docs.djangoproject.com/en/stable/ref/templates/api/#django.template.loaders.cached.Loader] ## Running maintenance tasks For _TEMPLATE_LOADERS = [ "django.template.loaders.filesystem.Loader", "django.template.loaders.app_directories.Loader" ] if not DEBUG: _TEMPLATE_LOADERS = [0 码力 | 664 页 | 9.34 MB | 2 年前3
The Weblate Manual 4.4.2], "loaders": [ (" "django.template.loaders.cached.Loader", [ "django.template.loaders.filesystem.Loader", "django.template.loaders.app_directories ], }, ], ], ## See also django.template.loaders.cached.Loader [https://docs.djangoproject.com/en/stable/ref/templates/api/#django.template.loaders.cached.Loader] ## Running maintenance tasks For _TEMPLATE_LOADERS = [ "django.template.loaders.filesystem.Loader", "django.template.loaders.app_directories.Loader" ] if not DEBUG: _TEMPLATE_LOADERS = [0 码力 | 703 页 | 9.34 MB | 2 年前3
Celery 1.0 Documentationcelery.task.builtins Loaders - celery.loaders Loader Base Classes - celery.loaders.base Default Loader - celery.loaders.default Django Loader - celery.loaders.djangoapp Task Registry uses something called loaders to read/setup configuration, import modules that register tasks and to decide what happens when a task is executed. Currently there are two loaders, the default loader and Classes - celery.task.builtins • Loaders - celery.loaders • Loader Base Classes - celery.loaders.base • Default Loader - celery.loaders.default • Django Loader - celery.loaders.djangoapp • Task Registry0 码力 | 221 页 | 283.64 KB | 2 年前3
Celery 2.0 DocumentationBuilt-in Task Classes - celery.task.builtins - Loaders - celery.loaders - Loader Base Classes - celery.loaders.base - Default Loader - celery.loaders.default - Task Registry - celery.registry - Built-in Task Classes - celery.task.builtins • Loaders - celery.loaders • Loader Base Classes - celery.loaders.base • Default Loader - celery.loaders.default • Task Registry - celery.registry. • Task 1.2. ### Loaders - celery.loaders celery.loaders.current_loader() Detect and return the current loader. celery.loaders.get_loader_cls(loader) Get loader class by name/alias celery.loaders.load_settings()0 码力 | 284 页 | 332.71 KB | 2 年前3
Celery 1.0 Documentationuses something called loaders to read/setup configuration, import modules that register tasks and to decide what happens when a task is executed. Currently there are two loaders, the default loader and #### 7.13 Loaders - celery.loaders celery.loaders.current_loader() Detect and return the current loader. celery.loaders.get_loader_cls(loader) Get loader class by name/alias celery.loaders.load_settings() settings object. ##### 7.14 Loader Base Classes - celery.loaders.base class celery.loaders.base.BaseLoader The base class for loaders. Loaders handles to following things: - Reading celery client/worker0 码力 | 123 页 | 400.69 KB | 2 年前3
Celery 2.5 Documentationcontributed by Matt Williamson. - The current date and time is now consistently taken from the current loaders now method. - Now shows helpful error message when given a config module ending in .py that can’t CELERY_BROKER_URL can also be used to easily override the default broker used. • The deprecated celery.loaders.setup_loader() function has been removed. - The CELERY TASK ERROR WHITELIST setting has been replaced removal in version 3.0: |Old function|Alternative| |---|---| |celery.loaders.current\_loader|celery.current\_app.loader| |celery.loaders.load\_settings|celery.current\_app.conf| |celery.execute.apply|Task0 码力 | 647 页 | 1011.88 KB | 2 年前3
Celery 2.4 DocumentationCELERY_BROKER_URL can also be used to easily override the default broker used. • The deprecated celery.loaders.setup_loader() function has been removed. - The CELERY TASK ERROR WHITELIST setting has been replaced removal in version 3.0: |Old function|Alternative| |---|---| |celery.loaders.current\_loader|celery.current\_app.loader| |celery.loaders.load\_settings|celery.current\_app.conf| |celery.execute.apply|Task celery="" task="" error="" white="" list="" is="" now="" properly="" initialized="" in="" all="" loaders.="" •="" celeryd_detach="" now="" passes="" through="" command-line="" configuration.="" -="" remote=""0 码力 | 543 页 | 957.42 KB | 2 年前3
共 727 条
- 1
- 2
- 3
- 4
- 5
- 6
- 73













