From 1dfccab35cb91c3b55e646628dfb429330364e92 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 12 Jun 2021 10:18:16 -0500 Subject: [PATCH] Remove path resolving in the config file --- packages/optimizers/cssnano/src/CSSNanoOptimizer.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/optimizers/cssnano/src/CSSNanoOptimizer.js b/packages/optimizers/cssnano/src/CSSNanoOptimizer.js index 36417037fb9..468a2be2e57 100644 --- a/packages/optimizers/cssnano/src/CSSNanoOptimizer.js +++ b/packages/optimizers/cssnano/src/CSSNanoOptimizer.js @@ -15,20 +15,11 @@ export default (new Optimizer({ packageKey: 'cssnano', }, ); - // TODO copied from stylus package. make this a utility function if (configFile) { let isJavascript = path.extname(configFile.filePath) === '.js'; if (isJavascript) { config.shouldInvalidateOnStartup(); } - - // Resolve relative paths from config file - if (configFile.contents.paths) { - configFile.contents.paths = configFile.contents.paths.map(p => - path.resolve(path.dirname(configFile.filePath), p), - ); - } - config.setResult(configFile.contents); } },