From fc88336bdb81d1828b488e08b0788d4d29e47cd0 Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Tue, 9 Apr 2019 17:29:11 +0800 Subject: [PATCH 01/10] :lipstick: site static js use contentHash --- package.json | 2 +- site/bisheng.config.js | 1 + site/theme/static/template.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ff267639fe..5374f31832 100644 --- a/package.json +++ b/package.json @@ -110,7 +110,7 @@ "antd-tools": "^7.3.0", "babel-eslint": "^10.0.1", "babel-plugin-add-react-displayname": "^0.0.5", - "bisheng": "^1.1.0", + "bisheng": "^1.2.2", "bisheng-plugin-antd": "^1.0.0", "bisheng-plugin-description": "^0.1.4", "bisheng-plugin-react": "^1.0.0", diff --git a/site/bisheng.config.js b/site/bisheng.config.js index 9cd84af61d..7f47680943 100644 --- a/site/bisheng.config.js +++ b/site/bisheng.config.js @@ -25,6 +25,7 @@ function alertBabelConfig(rules) { module.exports = { port: 8001, + hash: true, source: { components: './components', docs: './docs', diff --git a/site/theme/static/template.html b/site/theme/static/template.html index cce410c58e..be5312d542 100644 --- a/site/theme/static/template.html +++ b/site/theme/static/template.html @@ -74,7 +74,7 @@