841bd5d2f4
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
18 lines
366 B
JavaScript
18 lines
366 B
JavaScript
module.exports = function () {
|
|
return {
|
|
name: 'custom-webpack-loaders',
|
|
configureWebpack(config) {
|
|
config.module.rules.push({
|
|
test: /\.ya?ml$/,
|
|
use: 'yaml-loader',
|
|
});
|
|
config.module.rules.push({
|
|
test: /\.raw$/,
|
|
type: 'asset/source',
|
|
});
|
|
return {};
|
|
},
|
|
};
|
|
};
|
|
|