24 lines
514 B
JavaScript
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;
|
|
},
|
|
},
|
|
};
|