Skip to content

Commit 0ad1a45

Browse files
committed
fix($build): markdown config should be included in cache identifier
It's reported by vuejs#664, but vuejs#664 cannot be fixed fully since watching webpack config changes shouldn't be handled in VuePresss VuePress can only ensure that when user changes the markdown config, the cache identifier will be updated, so user needn't to clean the ./node_modules/.cache manually. See: webpack/webpack#3153, webpack/webpack-cli#15
1 parent 9b602f2 commit 0ad1a45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/webpack/createBaseConfig.js

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ module.exports = function createBaseConfig ({
8888
isProd,
8989
isServer,
9090
config: (
91+
(siteConfig.markdown ? JSON.stringify(siteConfig.markdown) : '') +
9192
(siteConfig.chainWebpack || '').toString() +
9293
(siteConfig.configureWebpack || '').toString()
9394
)

0 commit comments

Comments
 (0)