webpack/examples/persistent-caching/webpack.config.js

14 lines
325 B
JavaScript
Raw Normal View History

2018-10-09 20:30:59 +08:00
const path = require("path");
module.exports = (env = "development") => ({
mode: env,
infrastructureLogging: {
level: "verbose"
},
2018-10-09 20:30:59 +08:00
cache: {
type: "filesystem",
// changing the cacheDirectory is optional,
// by default it will be in `node_modules/.cache`
cacheDirectory: path.resolve(__dirname, ".cache")
2018-10-09 20:30:59 +08:00
}
});