Load any file extension using `?raw` in webpack
The following discussion from !112836 (merged) should be addressed:
-
@pslaughter started a discussion: (+1 comment) suggestion: We specify the
raw-loader
also with.yml
files. Have we considered combining these into one catch-all for?raw
imports?diff --git a/config/webpack.config.js b/config/webpack.config.js index 2ad53ad0d847..d68c3e0e236e 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -389,10 +389,6 @@ module.exports = { esModule: false, }, }, - { - resourceQuery: /raw/, - loader: 'raw-loader', - }, ], }, { @@ -453,7 +449,6 @@ module.exports = { }, }, { - test: /\.(yml|yaml)$/, resourceQuery: /raw/, loader: 'raw-loader', },