mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-19 01:43:44 +03:00
Fix build scripts for CSS, due to depreciation of node-sass
(#263)
This commit is contained in:
parent
71fa5ab5d3
commit
0fa0278ac7
|
@ -31,7 +31,6 @@ module.exports = function( grunt ) {
|
|||
require( 'autoprefixer' )( {
|
||||
cascade: false
|
||||
} ),
|
||||
require( 'pixrem' ),
|
||||
require('cssnano')( {
|
||||
mergeRules: false
|
||||
} )
|
||||
|
@ -44,7 +43,7 @@ module.exports = function( grunt ) {
|
|||
|
||||
sass: {
|
||||
options: {
|
||||
implementation: require( 'node-sass' ),
|
||||
implementation: require( 'sass' ),
|
||||
sourceMap: true,
|
||||
// Don't add source map URL in built version.
|
||||
omitSourceMapUrl: 'build' === process.argv[2],
|
||||
|
@ -78,7 +77,7 @@ module.exports = function( grunt ) {
|
|||
}
|
||||
|
||||
grunt.loadNpmTasks( 'grunt-sass' );
|
||||
grunt.loadNpmTasks( 'grunt-postcss' );
|
||||
grunt.loadNpmTasks( '@lodder/grunt-postcss' );
|
||||
grunt.loadNpmTasks( 'grunt-sass-globbing' );
|
||||
grunt.loadNpmTasks( 'grunt-contrib-watch' );
|
||||
|
||||
|
|
6337
themes/wporg-5ftf/package-lock.json
generated
6337
themes/wporg-5ftf/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -22,11 +22,10 @@
|
|||
"cssnano": "4.1.10",
|
||||
"grunt": "1.3.0",
|
||||
"grunt-contrib-watch": "1.1.0",
|
||||
"grunt-postcss": "0.9.0",
|
||||
"@lodder/grunt-postcss": "3.1.1",
|
||||
"grunt-sass": "3.1.0",
|
||||
"grunt-sass-globbing": "1.5.1",
|
||||
"node-sass": "5.0.0",
|
||||
"pixrem": "5.0.0",
|
||||
"sass": "1.49.9",
|
||||
"postcss": "^8.4.13"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue