1.0.6 • Published 4 years ago

craco-csv-loader v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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
            },
        }
    ]
}