craco-raw-loader

1.0.2 • Public • Published

Craco Raw Plugin

MIT License

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-dev

Basic 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$/ }
     }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.2422latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.2422
1.0.14
1.0.00

Package Sidebar

Install

npm i craco-raw-loader

Weekly Downloads

270

Version

1.0.2

License

MIT

Unpacked Size

8.29 kB

Total Files

13

Last publish

Collaborators

  • melmass