Spaces:
Sleeping
Sleeping
kenken999
fix: add webpack config override to resolve punycode polyfill for Strapi admin panel build
e43cee9 Download src/admin/webpack.config.js from kenken999/strapi-cms: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/kenken999/strapi-cms/resolve/main/src/admin/webpack.config.js
- Command line
-
hf download hf://spaces/kenken999/strapi-cms/src/admin/webpack.config.js
-
curl -L -o webpack.config.js https://huggingface.co/spaces/kenken999/strapi-cms/resolve/main/src/admin/webpack.config.js
327 Bytes
| ; | |
| // Fix: webpack5 does not include Node.js core polyfills by default | |
| // markdown-it requires 'punycode' which is a deprecated Node.js built-in | |
| module.exports = (config) => { | |
| config.resolve.fallback = { | |
| ...(config.resolve.fallback || {}), | |
| punycode: require.resolve('punycode/'), | |
| }; | |
| return config; | |
| }; | |