chore(build): add `postcss-preset-env` to inject polyfills
This commit is contained in:
parent
0dc71d9a54
commit
f9ffa18565
|
@ -1,7 +1,9 @@
|
|||
module.exports = (grunt) ->
|
||||
require('load-grunt-tasks')(grunt)
|
||||
# Load Grunt Tasks
|
||||
require('load-grunt-tasks') grunt
|
||||
|
||||
grunt.initConfig(
|
||||
# Project Configuration
|
||||
grunt.initConfig
|
||||
# NPM Package Declare
|
||||
pkg: grunt.file.readJSON('package.json')
|
||||
# Sass Compile
|
||||
|
@ -26,19 +28,23 @@ module.exports = (grunt) ->
|
|||
annotation: 'dist/'
|
||||
exp:
|
||||
options:
|
||||
processors: [require('autoprefixer')()]
|
||||
processors: [
|
||||
require('postcss-preset-env')()
|
||||
require('autoprefixer')()
|
||||
]
|
||||
src: 'dist/bundle.css'
|
||||
dest: 'dist/bundle.css'
|
||||
min:
|
||||
options:
|
||||
processors: [
|
||||
require('postcss-preset-env')()
|
||||
require('autoprefixer')()
|
||||
require('cssnano')(
|
||||
preset: 'default'
|
||||
)
|
||||
require('cssnano')(preset: 'default')
|
||||
]
|
||||
src: 'dist/bundle.min.css'
|
||||
dest: 'dist/bundle.min.css'
|
||||
)
|
||||
|
||||
grunt.registerTask('build', ['sass', 'postcss'])
|
||||
# Register Grunt Tasks
|
||||
grunt.registerTask 'build', [
|
||||
'sass'
|
||||
'postcss'
|
||||
]
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -49,6 +49,7 @@
|
|||
"grunt-sass": "^3.1.0",
|
||||
"load-grunt-tasks": "^5.1.0",
|
||||
"postcss": "^8.4.21",
|
||||
"postcss-preset-env": "^8.0.1",
|
||||
"stylelint": "^15.2.0",
|
||||
"stylelint-config-standard-scss": "^7.0.1",
|
||||
"stylelint-order": "^6.0.2",
|
||||
|
|
Loading…
Reference in New Issue