Files
workavia-drive/twake/frontend/craco.config.js
T
montaghanmy 10fe6f78d1 feat: init
2023-03-23 11:03:16 +01:00

29 lines
657 B
JavaScript

const CracoLessPlugin = require('craco-less');
const CracoAlias = require('craco-alias');
module.exports = {
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
javascriptEnabled: true,
},
},
},
},
{
plugin: CracoAlias,
options: {
source: 'tsconfig',
// baseUrl SHOULD be specified
// plugin does not take it from tsconfig
baseUrl: '.',
// tsConfigPath should point to the file where "baseUrl" and "paths" are specified
tsConfigPath: './tsconfig.paths.json',
},
},
],
};