2024-08-27 10:14:14 +08:00

14 lines
435 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const path = require('path');
module.exports = {
mode: 'development',
devtool: 'source-map',
entry: './src/index.js',
cache: {
type: 'filesystem', // 缓存类型支持memory、filesystem
cacheDirectory: path.resolve(__dirname, 'node_modules/.cache/webpack'), // 缓存目录,仅类型为 filesystem 有效
// 更多配置参考https://webpack.docschina.org/configuration/other-options/#cache
},
};