move postcss functions to own module
This commit is contained in:
parent
bb41a5239c
commit
e42ec37a23
|
@ -1,6 +1,4 @@
|
|||
function half(val) {
|
||||
return val / 2;
|
||||
}
|
||||
const postcssFunctions = require('./src/js/postcss-functions.js');
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
|
@ -11,7 +9,7 @@ module.exports = {
|
|||
'postcss-simple-vars',
|
||||
['postcss-functions',
|
||||
{
|
||||
functions: { half },
|
||||
functions: postcssFunctions,
|
||||
},
|
||||
],
|
||||
],
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
const postcssFunctions = {
|
||||
half(val) {
|
||||
return val / 2;
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = postcssFunctions;
|
Loading…
Reference in New Issue