-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.services.yml
More file actions
32 lines (29 loc) · 1.46 KB
/
webpack.services.yml
File metadata and controls
32 lines (29 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
webpack.libraries_inspector:
class: Drupal\webpack\LibrariesInspector
arguments: [ '@module_handler', '@theme_handler','@library.discovery']
webpack.config_builder:
class: Drupal\webpack\WebpackConfigBuilder
arguments: [ '@webpack.libraries_inspector', '@file_system', '@config.factory', '@logger.channel.webpack', '@module_handler', '@plugin.manager.webpack.config_processor']
webpack.bundle_info:
class: Drupal\webpack\WebpackBundleInfo
arguments: [ '@webpack.config_builder', '@state', '@config.factory']
webpack.bundler:
class: Drupal\webpack\Bundler
arguments: [ '@webpack.config_builder', '@webpack.bundle_info', '@state', '@config.factory', '@plugin.manager.npm_executable', '@webpack.libraries_inspector']
asset.resolver.webpack:
class: Drupal\webpack\Asset\DecoratedAssetResolver
decorates: asset.resolver
arguments: [ '@asset.resolver.webpack.inner', '@webpack.libraries_inspector', '@webpack.bundle_info', '@state', '@logger.channel.webpack', '@config.factory']
logger.channel.webpack:
parent: logger.channel_base
arguments: ['webpack']
# Plugin manager for fields.
plugin.manager.webpack.config_processor:
class: Drupal\webpack\Plugin\ConfigProcessorPluginManager
arguments:
- 'Plugin/Webpack/ConfigProcessors'
- '@container.namespaces'
- '@module_handler'
- '\Drupal\webpack\Plugin\ConfigProcessorPluginInterface'
- '\Drupal\webpack\Annotation\WebpackConfigProcessor'