mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-30 14:14:17 +00:00
31 lines
741 B
JavaScript
31 lines
741 B
JavaScript
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = function() {
|
|
return {
|
|
name: 'docusaurus-theme-live-codeblock',
|
|
|
|
getThemePath() {
|
|
return path.resolve(__dirname, './theme');
|
|
},
|
|
|
|
configureWebpack() {
|
|
return {
|
|
resolve: {
|
|
alias: {
|
|
// fork of Buble which removes Buble's large dependency and weighs in at a smaller size of ~51kB
|
|
// https://github.com/FormidableLabs/react-live#what-bundle-size-can-i-expect
|
|
buble: '@philpl/buble',
|
|
},
|
|
},
|
|
};
|
|
},
|
|
};
|
|
};
|