From 5d1a2e611e55beb038877d96b5ec1564d012a21d Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 24 Apr 2019 17:09:34 -0400 Subject: [PATCH] Moves .cache-images into node_modules/.cache --- .gitignore | 2 -- .vscodeignore | 2 -- package.json | 2 +- webpack.config.js | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index bc80ce5..864db35 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -.cache-images -.cache-loader dist node_modules images/settings diff --git a/.vscodeignore b/.vscodeignore index 8bf43e2..a3ebe7d 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,5 +1,3 @@ -.cache-images/** -.cache-loader/** .github/** .vscode/** dist/webviews/main.js diff --git a/package.json b/package.json index dfc57b4..89c4aa4 100644 --- a/package.json +++ b/package.json @@ -5083,7 +5083,7 @@ "analyze:deps": "webpack --env.analyzeDeps", "build": "webpack --env.development", "bundle": "webpack --env.production", - "clean": "git clean -Xdf -e !.cache-images -e !node_modules -e !node_modules/**/*", + "clean": "git clean -Xdf -e !node_modules -e !node_modules/**/*", "lint": "eslint src/**/*.ts --fix", "pack": "vsce package", "pretty": "prettier --config .prettierrc --loglevel warn --write \"./**/*.{ts,md,json}\" && npm run lint", diff --git a/webpack.config.js b/webpack.config.js index 21de7f3..0e4901f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -183,7 +183,7 @@ function getWebviewsConfig(env) { sources: glob.sync('src/webviews/apps/images/settings/*.png'), destination: path.resolve(__dirname, 'images') }, - cacheFolder: path.resolve(__dirname, '.cache-images'), + cacheFolder: path.resolve(__dirname, 'node_modules', '.cache', 'imagemin-webpack-plugin'), gifsicle: null, jpegtran: null, optipng: null,