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:
Sébastien Lorber 2020-07-01 19:06:02 +02:00 committed by GitHub
parent a5b2b6056b
commit 8aa6ef47e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 304 additions and 38 deletions

View file

@ -25,6 +25,9 @@ export default function (
configureWebpack(_config: Configuration, isServer: boolean) {
return {
mergeStrategy: {
'module.rules': 'prepend',
},
module: {
rules: [
{