mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 15:16:28 +08:00
fix: json import
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user