Skip to content

Commit c99ea93

Browse files
committed
fix($build): markdown config should be included in cache identifier
It's reported by #664, but #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 muanully. See: webpack/webpack#3153, webpack/webpack-cli#15
1 parent 9b602f2 commit c99ea93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/webpack/createBaseConfig.js

Lines changed: 1 addition & 0 deletions
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)