Skip to content

Commit 0685f15

Browse files
author
Callin Mullaney
committed
fix: postcss and babel config override from project folder
1 parent b0a66aa commit 0685f15

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

config/webpack/loaders.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ let babelConfig;
1010
let postcssConfig;
1111

1212
// Check if custom babel config is available.
13-
if (fs.existsSync('./config/babel.config.js')) {
14-
babelConfig = './config/babel.config.js';
13+
if (fs.existsSync('./config/emulsify-core/webpack/babel.config.cjs')) {
14+
babelConfig = './config/emulsify-core/webpack/babel.config.cjs';
1515
} else {
1616
babelConfig = './node_modules/@emulsify/core/config/babel.config.js';
1717
}
1818

1919
// Check if custom postcss config is available.
20-
if (fs.existsSync('./config/postcss.config.js')) {
21-
postcssConfig = './config/postcss.config.js';
20+
if (fs.existsSync('./config/emulsify-core/webpack/postcss.config.cjs')) {
21+
postcssConfig = './config/emulsify-core/webpack/postcss.config.cjs';
2222
} else {
2323
postcssConfig = './node_modules/@emulsify/core/config/postcss.config.js';
2424
}

0 commit comments

Comments
 (0)