mirror of https://github.com/webpack/webpack.git
14 lines
325 B
JavaScript
14 lines
325 B
JavaScript
const path = require("path");
|
|
module.exports = (env = "development") => ({
|
|
mode: env,
|
|
infrastructureLogging: {
|
|
level: "verbose"
|
|
},
|
|
cache: {
|
|
type: "filesystem",
|
|
// changing the cacheDirectory is optional,
|
|
// by default it will be in `node_modules/.cache`
|
|
cacheDirectory: path.resolve(__dirname, ".cache")
|
|
}
|
|
});
|