craco-csv-loader

1.0.6 • Public • Published

Craco Csv Loader Plugin

MIT License

This is a craco plugin that makes it easy to use the webpack csv-loader with create-react-app.

Installation

$ npm install craco-csv-loader --save-dev

# OR

$ yarn add -D craco-csv-loader

Basic Usage

craco-csv-loader expect a test option containing your regex selector.

Here is a simple craco.config.js example for .csv files:

const csvLoader = require('craco-csv-loader')

module.exports = {
    webpack: {
        plugins: [
        {
            plugin: csvPlugin,
            options: {
                dynamicTyping: true,
                header: true,
                skipEmptyLines: true
            },
        }
    ]
}

Package Sidebar

Install

npm i craco-csv-loader

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

3.18 kB

Total Files

7

Last publish

Collaborators

  • nicobb