Skip to main content

Example Configuration

/**
* @type {import('repacked').AppConfig}
*/
const config = {
development: {
open: true, // default is true
port: 4000, // default is 3000
},
output: {
dir: "./dist", // default is ./dist
},
client: {
enabled: true, // default is true
entry: "./src/index.tsx", // default is ./src/index.tsx
template: "./src/index.html", // default is ./src/index.html
},
server: {
enabled: true, // default is false
entry: "./src/server.tsx", // default is ./src/server.ts
},
webpack: (config) => {
return config;
},
jest: (config) => {
return config;
},
};

module.exports = config;