docs.sheetjs.com/docz/static/next/next.config.js

12 lines
326 B
JavaScript
Raw Normal View History

2023-05-26 22:50:23 +00:00
module.exports = {
webpack: (config) => {
/* add to the webpack config module.rules array */
config.module.rules.push({
/* `test` matches file extensions */
test: /\.(numbers|xls|xlsx|xlsb)/,
/* use the loader script */
use: [ { loader: './base64-loader' } ]
});
return config;
}
};