Inline loaders
It's possible to specify loaders in an import statement, or any equivalent "importing" method. Separate loaders from the resource with !. Each part is resolved relative to the current directory.
It's possible to override any loaders, preLoaders and postLoaders from the configuration by prefixing the inline import statement:
-
Prefixing with
!will disable all configured normal loaders -
Prefixing with
!!will disable all configured loaders (preLoaders, loaders, postLoaders) -
Prefixing with
-!will disable all configured preLoaders and loaders but not postLoaders
Options can be passed with a query parameter, e.g. ?key=value&foo=bar, or a JSON object, e.g. ?{"key":"value","foo":"bar"}.
This page is adapted from webpack documentation under the CC BY 4.0, with modifications.

