mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-29 21:42:50 +00:00
* fix(v2): Use require.resolve to resolve loaders in official plugins * Use require.resolve to resolve client modules
21 lines
492 B
JavaScript
21 lines
492 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* 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-bootstrap',
|
|
getThemePath() {
|
|
return path.resolve(__dirname, './theme');
|
|
},
|
|
getClientModules() {
|
|
return [require.resolve('bootstrap/dist/css/bootstrap.min.css')];
|
|
},
|
|
};
|
|
};
|