1.0.6 • Published 4 years ago
craco-csv-loader v1.0.6
Craco Csv Loader Plugin
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
},
}
]
}
1.0.6
4 years ago