mirror of
https://github.com/block/goose.git
synced 2026-04-28 11:39:43 +00:00
21 lines
460 B
JavaScript
21 lines
460 B
JavaScript
module.exports = function () {
|
|
return {
|
|
name: 'custom-webpack-loaders',
|
|
configureWebpack(config, isServer, utils) {
|
|
// Add YAML loader
|
|
config.module.rules.push({
|
|
test: /\.ya?ml$/,
|
|
use: 'yaml-loader',
|
|
});
|
|
|
|
// Add .raw file loader
|
|
config.module.rules.push({
|
|
test: /\.raw$/,
|
|
type: 'asset/source',
|
|
});
|
|
|
|
return {};
|
|
},
|
|
};
|
|
};
|
|
|