Files
SPROUT/craco.config.js
2025-12-09 11:54:54 +09:00

23 lines
585 B
JavaScript

const { CracoAliasPlugin } = require('react-app-alias');
const { VanillaExtractPlugin } = require("@vanilla-extract/webpack-plugin");
module.exports = {
plugins: [
{
plugin: CracoAliasPlugin,
options: {
source: 'tsconfig',
baseUrl: './src',
tsConfigPath: './tsconfig.paths.json',
},
},
{
plugin: VanillaExtractPlugin,
}
],
webpack: {
configure: (webpackConfig, { env, paths }) => {
return webpackConfig;
},
},
};