excel-loader

A webpack module to directly load Excel files

Usage no npm install needed!

<script type="module">
  import excelLoader from 'https://cdn.skypack.dev/excel-loader';
</script>

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