feat(v2): allow easy css override with custom css (#1559)

* feat(v2): allow easy css override with custom css

* lint

* fix(v2): use back require for client modules
This commit is contained in:
Endi 2019-06-05 00:03:11 +07:00 committed by Yangshun Tay
parent e35c1efdf8
commit b789624d2e
8 changed files with 9 additions and 43 deletions

View file

@ -106,15 +106,10 @@ module.exports = {
path: '../website-1.x/blog',
postsPerPage: 3,
},
theme: {
customCss: require.resolve('./css/custom.css'),
},
},
],
],
plugins: [
{
module: require('path').resolve(
__dirname,
'./plugins/plugin-infima-overrides',
),
},
],
};

View file

@ -1,17 +0,0 @@
/**
* 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-plugin-website-infima',
getClientModules() {
return [path.resolve(__dirname, './infima-overrides')];
},
};
};

View file

@ -1,8 +0,0 @@
/**
* 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.
*/
import './infima-variables.css';