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

10 lines
201 B
JavaScript
Raw Normal View History

2018-10-09 20:30:59 +08:00
const path = require("path");
module.exports = (env = "development") => ({
mode: env,
cache: {
type: "filesystem",
cacheDirectory: path.resolve(__dirname, ".cache"),
2018-10-10 16:51:08 +08:00
loglevel: "warning"
2018-10-09 20:30:59 +08:00
}
});