I'm migrating from pure Webpack to CRA template and I'm using antd, so I'm trying to implement craco-antd package, but I'm facing an issue : the antd rule are more prioritized than mine in the generated inline css :
index.js
import React from 'react';
import './style.less';
import './theme.less';
craco.config.js
const CracoAntDesignPlugin = require("craco-antd");
module.exports = {
plugins: [
{
plugin: CracoAntDesignPlugin
}
]
};
Result :
edit : I don't have the same behavior on prod and debug build => prod OK debug KO
