craco-raw-loader
v1.0.2
Published
A craco plugin to use raw-loader with create-react-app
Maintainers
Readme
Craco Raw Plugin
This is a craco plugin that makes it easy to use the webpack raw-loader with create-react-app version >= 2.
Installation
$ yarn add -D craco-raw-loader
# OR
$ npm install craco-raw-loader --save-devBasic Usage
craco-raw-loader expect a test option containing your regex selector.
Here is a simple craco.config.js example for frag (OpenGL Fragment Shader) files:
const rawLoader = require('craco-raw-loader')
module.exports = {
plugins: [
{
plugin: rawLoader,
options: { test: /\.frag$/ }
}
}