From d7a68d21ad963922fc789cbcc764d1227563538d Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Fri, 22 Feb 2019 23:22:05 +0100 Subject: [PATCH] Simplify postcss.config.js --- postcss.config.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/postcss.config.js b/postcss.config.js index 22e8f4940723b..26c0d68cfa6fc 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,18 +1,7 @@ -const path = require( 'path' ); - module.exports = ( { options: { preserveCssCustomProperties = true } } ) => ( { plugins: { 'postcss-custom-properties': { - importFrom: [ - path.join( - __dirname, - 'node_modules', - '@automattic', - 'calypso-css-custom-properties', - 'dist', - 'custom-properties.css' - ), - ], + importFrom: [ require.resolve( '@automattic/calypso-css-custom-properties' ) ], preserve: preserveCssCustomProperties, }, autoprefixer: {},