Browse Source

site: css split plugin should work with livereload

pull/3043/head
Benjy Cui 8 years ago
parent
commit
648476de70
  1. 2
      site/bisheng.config.js
  2. 3
      site/theme/static/template.html

2
site/bisheng.config.js

@ -69,7 +69,7 @@ module.exports = {
site: path.join(process.cwd(), 'site'),
'react-router': 'react-router/umd/ReactRouter',
};
config.plugins.push(new CSSSplitWebpackPlugin({ imports: true }));
config.plugins.push(new CSSSplitWebpackPlugin({}));
config.babel.plugins.push([
require.resolve('babel-plugin-transform-runtime'),

3
site/theme/static/template.html

@ -6,7 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ant Design - 一个 UI 设计语言</title>
<link rel="icon" href="https://t.alipayobjects.com/images/T1QUBfXo4fXXXXXXXX.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="{{ root }}index.css"/>
<link rel="stylesheet" type="text/css" href="{{ root }}index-1.css"/>
<link rel="stylesheet" type="text/css" href="{{ root }}index-2.css"/>
<!--[if lte IE 10]>
<script
src="https://as.alipayobjects.com/g/component/??console-polyfill/0.2.2/index.js,media-match/2.0.2/media.match.min.js"></script>

Loading…
Cancel
Save