vue-cli-plugin-vusion
Version:
Vue CLI Plugin for Vusion Projects
7 lines • 383 B
JavaScript
const postcss = require('postcss');
const getCustomPropertiesFromRoot = require('./get-custom-properties');
const transformProperties = require('./transform-properties');
module.exports = postcss.plugin('postcss-custom-properties-reader', (opts) => (root) => {
const customProperties = getCustomPropertiesFromRoot(root);
transformProperties(root, customProperties);
});