Skip to content

Commit

Permalink
Simplify postcss.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Feb 22, 2019
1 parent 583ce6a commit d7a68d2
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -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: {},
Expand Down

0 comments on commit d7a68d2

Please sign in to comment.