chore(build): disable `postcss-custom-properties` option in PostCSS

This commit is contained in:
郭桓桓 2023-03-03 18:42:00 +08:00
parent fd57e4bc4f
commit 4bbc199636
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75
1 changed files with 8 additions and 2 deletions

View File

@ -29,7 +29,10 @@ module.exports = (grunt) ->
exp:
options:
processors: [
require('postcss-preset-env')()
require('postcss-preset-env')(
features:
'custom-properties': false
)
require('autoprefixer')()
]
src: 'dist/bundle.css'
@ -37,7 +40,10 @@ module.exports = (grunt) ->
min:
options:
processors: [
require('postcss-preset-env')()
require('postcss-preset-env')(
features:
'custom-properties': false
)
require('autoprefixer')()
require('cssnano')(preset: 'default')
]