sbv2-solana/website/plugins/my-loaders/index.js

16 lines
340 B
JavaScript
Raw Normal View History

2022-05-17 09:42:04 -07:00
module.exports = function (context, options) {
return {
name: "loaders",
configureWebpack(config, isServer) {
return {
module: {
rules: [{ test: /\.txt$/, use: "file-loader" }],
},
resolve: {
fallback: { crypto: false, path: false, fs: false },
},
};
},
};
};