Skip to content

Commit

Permalink
fix: new webpack compatibility issue fix #52
Browse files Browse the repository at this point in the history
  • Loading branch information
lelouch77 authored May 9, 2021
1 parent f41d4a7 commit 65e2f8d
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,7 @@ module.exports = function (context, options) {
const generatedFilesDir = config.resolve.alias['@generated']
languages = utils.generateLunrClientJS(generatedFilesDir, options.languages);
// Ensure that algolia docsearch css is its own chunk
return {
optimization: {
splitChunks: {
cacheGroups: {
algolia: {
name: 'algolia',
test: /algolia\.css$/,
chunks: `all`,
enforce: true,
// Set priority higher than docusaurus single-css extraction
priority: 60,
},
},
},
},
};
return {};
},
async contentLoaded({actions}) {
actions.setGlobalData({"fileNames": fileNames})
Expand Down

0 comments on commit 65e2f8d

Please sign in to comment.