backstory/frontend/craco.config.js
2025-05-16 14:27:06 -07:00

24 lines
514 B
JavaScript

module.exports = {
devServer: {
server: {
type: 'https',
// You can also specify custom certificates if needed:
// options: {
// cert: '/path/to/cert.pem',
// key: '/path/to/key.pem',
// }
}
},
webpack: {
configure: (webpackConfig) => {
// Add .ts and .tsx to resolve.extensions
webpackConfig.resolve.extensions = [
...webpackConfig.resolve.extensions,
'.ts',
'.tsx',
];
return webpackConfig;
},
},
};