feat(main): Add base theme: This is the falcon theme out of the box.

This is falcon v3.1.2
This commit is contained in:
2025-11-18 14:04:01 +01:00
parent 3a7f2db331
commit 6849b8eefd
605 changed files with 49820 additions and 0 deletions

View File

@ -0,0 +1,18 @@
const { webpackVars, getEnvData } = require('./webpack/webpack.vars.js');
const { commonConfig } = require('./webpack/webpack.common.js');
const { productionConfig } = require('./webpack/webpack.production.js');
const { developmentConfig } = require('./webpack/webpack.development.js');
const { merge } = require('webpack-merge');
const getConfig = ({mode, ...vars}) => {
switch (mode) {
case 'production':
return merge(commonConfig({mode, ...vars}), productionConfig({mode, ...vars}));
case 'development':
return merge(commonConfig({mode, ...vars}), developmentConfig({mode, ...vars}));
default:
throw new Error(`Trying to use an unknown mode, ${mode}`);
}
};
module.exports = (env, options) => getEnvData({env, options, webpackVars}, getConfig);