Skip to content

Commit

Permalink
fix($build): markdown config should be included in cache identifier
Browse files Browse the repository at this point in the history
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 manually.

See: webpack/webpack#3153, webpack/webpack-cli#15
  • Loading branch information
ulivz committed Jul 25, 2018
1 parent 65d8d64 commit 4d909d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/webpack/createBaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ module.exports = function createBaseConfig ({
isProd,
isServer,
config: (
(siteConfig.markdown ? JSON.stringify(siteConfig.markdown) : '') +
(siteConfig.chainWebpack || '').toString() +
(siteConfig.configureWebpack || '').toString()
)
Expand Down

0 comments on commit 4d909d0

Please sign in to comment.