Skip to content

Commit

Permalink
Merge pull request #14908 from mshima/skip_ci-webpack_cache
Browse files Browse the repository at this point in the history
Fix react and vue webpack cache.
  • Loading branch information
mshima authored May 7, 2021
2 parents 71c9594 + 05857bf commit 6e9ce66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = (options) => webpackMerge(commonConfig({ env: ENV }), {
cache: {
// 1. Set cache type to filesystem
type: 'filesystem',
cacheDirectory: path.resolve(__dirname, '<%= buildDir %>webpack'),
cacheDirectory: path.resolve(__dirname, '../<%= buildDir %>webpack'),
buildDependencies: {
// 2. Add your config as buildDependency to get cache invalidation on config change
config: [
Expand Down
4 changes: 2 additions & 2 deletions generators/client/templates/vue/webpack/webpack.dev.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ module.exports = webpackMerge(baseWebpackConfig, {
cache: {
// 1. Set cache type to filesystem
type: 'filesystem',
cacheDirectory: path.resolve(__dirname, '<%= buildDir %>webpack'),
cacheDirectory: path.resolve(__dirname, '../<%= buildDir %>webpack'),
buildDependencies: {
// 2. Add your config as buildDependency to get cache invalidation on config change
config: [
__filename,
path.resolve(__dirname, 'webpack.common.js'),
path.resolve(__dirname, 'utils.js'),
path.resolve(__dirname, '../postcssrc.js'),
path.resolve(__dirname, '../.postcssrc.js'),
path.resolve(__dirname, '../tsconfig.json')
],
},
Expand Down

0 comments on commit 6e9ce66

Please sign in to comment.