| | 1 | import process from 'node:process'; |
| | 2 | import path from 'node:path'; |
| | 3 | |
| 1 | /** @type {import('webpack').Configuration} */ | 4 | /** @type {import('webpack').Configuration} */ |
| 2 | export const publicLibConfig = { | 5 | export const publicLibConfig = { |
| 3 | mode: 'production', | 6 | mode: 'production', |
| 4 | entry: './public/lib.js', | 7 | entry: './public/lib.js', |
| 5 | cache: true, | 8 | cache: { |
| | 9 | type: 'filesystem', |
| | 10 | cacheDirectory: path.resolve(process.cwd(), 'dist/webpack'), |
| | 11 | }, |
| 6 | devtool: false, | 12 | devtool: false, |
| 7 | module: {}, | 13 | module: {}, |
| 8 | stats: { | 14 | stats: { |