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

16 lines
340 B
JavaScript

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 },
},
};
},
};
};