Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Add raw-loader #19

Open
jbccollins opened this issue May 30, 2019 · 0 comments
Open

Add raw-loader #19

jbccollins opened this issue May 30, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jbccollins
Copy link
Owner

https://webpack.js.org/loaders/raw-loader/

Put it at the top of the oneOf section in webpack.config.js

oneOf: [
    // Load files as raw strings
    {
      test: [/\.txt$/, /\.md$/],
      use: 'raw-loader',
    },
    ...
]

Don't forget to document this as a change from a freshly ejected CRA!!

@jbccollins jbccollins added the enhancement New feature or request label May 30, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant