fix: json import

This commit is contained in:
DarkSky 2022-09-02 11:57:08 +08:00
parent b7dd879a27
commit e7d11f20bb
2 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,12 @@ module.exports = config => {
padding.push(postcss);
nxConfig.plugins.splice(postcssIndex, 1);
const jsonIndex = nxConfig.plugins.findIndex(p => p?.name === 'json');
if (jsonIndex !== -1) {
padding.push(nxConfig.plugins[jsonIndex]);
nxConfig.plugins.splice(jsonIndex, 1);
}
const style9Plugin = style9({
minifyProperties: true,
incrementalClassnames: true,

View File

@ -12,6 +12,12 @@ module.exports = config => {
padding.push(postcss);
nxConfig.plugins.splice(postcssIndex, 1);
const jsonIndex = nxConfig.plugins.findIndex(p => p?.name === 'json');
if (jsonIndex !== -1) {
padding.push(nxConfig.plugins[jsonIndex]);
nxConfig.plugins.splice(jsonIndex, 1);
}
const style9Plugin = style9({
minifyProperties: true,
incrementalClassnames: true,