docs.sheetjs.com/docz/src/plugins/sheetjs-docusaurus/index.js

20 lines
508 B
JavaScript

/** @type {import('@docusaurus/types').PluginModule} */
export default function SheetJSDocusaurus(context, opts) {
/** @type {import('@docusaurus/types').Plugin} */
const plugin = {
name: "sheetjs-docusaurus",
configureWebpack(config, isServer, utils, content) {
return {
module: {
rules: [
{
test: /\.xls/,
use: [ { loader: __dirname + '/sheetjs-loader' } ]
}
]
}
}
}
};
return plugin;
}