1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add persistant chache for extension-api

Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
Hung-Han (Henry) Chen 2020-12-04 17:58:00 +08:00
parent 6aec421dc0
commit 40760b05e7
No known key found for this signature in database
GPG Key ID: A28B7834EFA73792

View File

@ -1,7 +1,7 @@
import path from "path";
import webpack from "webpack";
import { sassCommonVars } from "./src/common/vars";
import { sassCommonVars, isDevelopment } from "./src/common/vars";
export default function (): webpack.Configuration {
const entry = "./src/extensions/extension-api.ts";
@ -27,6 +27,13 @@ export default function (): webpack.Configuration {
// default is true
minimize: false
},
cache: isDevelopment ? {
type: "filesystem",
buildDependencies: {
// Add your config as buildDependency to get cache invalidation on config change
config: [__filename]
}
} : false,
module: {
rules: [
{