mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-27 21:48:41 +02:00
feat(v2): configureWebpack merge strategy + use file-loader for common asset types (#2994)
* Add some default asset loaders Add webpack merge strategy feature to enable plugins to prepend some webpack configuration (like the ideal image plugin that should override the default image loader) * Add documentation for using assets from markdown * add path prefix for webpack file loader * renaming * document Merge strategies * rename mergeStrategies -> mergeStrategy
This commit is contained in:
parent
a5b2b6056b
commit
8aa6ef47e4
13 changed files with 304 additions and 38 deletions
|
@ -25,6 +25,9 @@ export default function (
|
|||
|
||||
configureWebpack(_config: Configuration, isServer: boolean) {
|
||||
return {
|
||||
mergeStrategy: {
|
||||
'module.rules': 'prepend',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue