23 lines
585 B
JavaScript
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;
|
|
},
|
|
},
|
|
}; |