diff --git a/generators/app/templates/package.json b/generators/app/templates/package.json index 031cefe..be9e8d4 100644 --- a/generators/app/templates/package.json +++ b/generators/app/templates/package.json @@ -43,6 +43,9 @@ "author": "", "license": "ISC", "devDependencies": { + "@tencent/postcss-math-calc": "0.0.1", + "@tencent/postcss-picasso-animation": "0.0.1", + "autoprefixer": "9.6.0", "babel-eslint": "^10.0.1", "commitlint-config-imt": "0.0.4", "eslint": "^5.7.0", @@ -61,12 +64,15 @@ "imagemin-optipng": "^5.2.1", "imagemin-svgo": "^6.0.0", "lint-staged": "^8.1.0", - "postcss-advanced-variables": "^2.3.3", - "postcss-color-function": "4.0.1", - "postcss-custom-properties": "^8.0.9", + "postcss-advanced-variables": "^3.0.0", + "postcss-color-function": "^4.1.0", + "postcss-custom-media": "^7.0.8", + "postcss-custom-properties": "^8.0.10", + "postcss-discard-comments": "^4.0.2", "postcss-extend-rule": "^2.0.0", "postcss-font-base64": "^1.0.5", - "postcss-nested": "^4.1.0", + "postcss-map-get": "^0.2.9", + "postcss-nested": "^4.1.2", "postcss-partial-import": "^4.1.0", "postcss-scss": "^2.0.0", "postcss-url": "^8.0.0", diff --git a/generators/app/templates/postcss.config.js b/generators/app/templates/postcss.config.js index eedc11d..8da5604 100644 --- a/generators/app/templates/postcss.config.js +++ b/generators/app/templates/postcss.config.js @@ -17,5 +17,10 @@ module.exports = { 'postcss-url': { url: 'inline', // inline image to base64 }, + 'postcss-map-get': {}, + '@tencent/postcss-math-calc': {}, + '@tencent/postcss-picasso-animation': {}, + 'postcss-discard-comments': {}, + autoprefixer: {}, }, };