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:
parent
6aec421dc0
commit
40760b05e7
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import webpack from "webpack";
|
import webpack from "webpack";
|
||||||
import { sassCommonVars } from "./src/common/vars";
|
import { sassCommonVars, isDevelopment } from "./src/common/vars";
|
||||||
|
|
||||||
export default function (): webpack.Configuration {
|
export default function (): webpack.Configuration {
|
||||||
const entry = "./src/extensions/extension-api.ts";
|
const entry = "./src/extensions/extension-api.ts";
|
||||||
@ -27,6 +27,13 @@ export default function (): webpack.Configuration {
|
|||||||
// default is true
|
// default is true
|
||||||
minimize: false
|
minimize: false
|
||||||
},
|
},
|
||||||
|
cache: isDevelopment ? {
|
||||||
|
type: "filesystem",
|
||||||
|
buildDependencies: {
|
||||||
|
// Add your config as buildDependency to get cache invalidation on config change
|
||||||
|
config: [__filename]
|
||||||
|
}
|
||||||
|
} : false,
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user