docusaurus/packages/docusaurus-theme-bootstrap/src/index.js
Sam Zhou 705f8f3c51
fix(v2): Consistently use require.resolve in official plugins to resolve modules (#2797)
* fix(v2): Use require.resolve to resolve loaders in official plugins

* Use require.resolve to resolve client modules
2020-05-23 11:26:50 +08:00

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')];
},
};
};