init
This commit is contained in:
13
postcss.config.js
Normal file
13
postcss.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = function (ctx) {
|
||||
ctx = ctx || {};
|
||||
ctx.env = ctx.env || 'development';
|
||||
|
||||
return {
|
||||
map: ctx.env === 'development' ? ctx.map : false,
|
||||
plugins: {
|
||||
'postcss-import': {},
|
||||
'postcss-preset-env': {},
|
||||
cssnano: ctx.env === 'production' ? {} : false,
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user