README
Webpack Excel loader
Purpose
This Excel loader magically inject data from excel file to your webpack project.
Installation
Install with npm:
npm install excel-loader
Usage
Add the excel-loader to your webpack configuration:
const config = {
module: {
rules: [
{
test: /\.xls.?$/,
loader: 'excel-loader'
}
]
}
The loader will translate excel files into JSON, exactly as node-xlsx do (just on build).
Tips
For convert Excel Date to JS date you can use this gist by Cristopher Scott
Credits
- Inspired by csv-loader which inspired by dsv-loader which inspired by json-loader
- Excel slurping done with node-xlsx over the awesome xlsx!