site: fix site in IE9, WTF

This commit is contained in:
Benjy Cui 2016-09-13 14:47:05 +08:00
parent 58745edecf
commit cda671fead
2 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,7 @@
"bisheng-plugin-description": "^0.1.1",
"bisheng-plugin-react": "^0.2.0",
"bisheng-plugin-toc": "^0.3.0",
"css-split-webpack-plugin": "^0.2.1",
"dora-plugin-upload": "^0.3.1",
"enquire.js": "^2.1.1",
"es6-shim": "^0.35.0",

View File

@ -1,4 +1,5 @@
const path = require('path');
const CSSSplitWebpackPlugin = require('css-split-webpack-plugin').default;
function pickerGenerator(module) {
const tester = new RegExp(`^docs/${module}`);
@ -68,6 +69,7 @@ module.exports = {
site: path.join(process.cwd(), 'site'),
'react-router': 'react-router/umd/ReactRouter',
};
config.plugins.push(new CSSSplitWebpackPlugin({ imports: true }));
config.babel.plugins.push([
require.resolve('babel-plugin-transform-runtime'),