Obfuscate plain text into unreadable text.
npm i --save gatsby-transformer-obfuscator
Note: You also need to have gatsby-source-filesystem
installed and configured so it points to your files.
In your gatsby-config.js
module.exports = {
plugins: [
`gatsby-transformer-yaml`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/data/`,
},
},
],
}
Where the source folder ./src/data/
contains the text files.