mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-21 10:33: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' )( {
|
require( 'autoprefixer' )( {
|
||||||
cascade: false
|
cascade: false
|
||||||
} ),
|
} ),
|
||||||
require( 'pixrem' ),
|
|
||||||
require('cssnano')( {
|
require('cssnano')( {
|
||||||
mergeRules: false
|
mergeRules: false
|
||||||
} )
|
} )
|
||||||
|
@ -44,7 +43,7 @@ module.exports = function( grunt ) {
|
||||||
|
|
||||||
sass: {
|
sass: {
|
||||||
options: {
|
options: {
|
||||||
implementation: require( 'node-sass' ),
|
implementation: require( 'sass' ),
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
// Don't add source map URL in built version.
|
// Don't add source map URL in built version.
|
||||||
omitSourceMapUrl: 'build' === process.argv[2],
|
omitSourceMapUrl: 'build' === process.argv[2],
|
||||||
|
@ -78,7 +77,7 @@ module.exports = function( grunt ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
grunt.loadNpmTasks( 'grunt-sass' );
|
grunt.loadNpmTasks( 'grunt-sass' );
|
||||||
grunt.loadNpmTasks( 'grunt-postcss' );
|
grunt.loadNpmTasks( '@lodder/grunt-postcss' );
|
||||||
grunt.loadNpmTasks( 'grunt-sass-globbing' );
|
grunt.loadNpmTasks( 'grunt-sass-globbing' );
|
||||||
grunt.loadNpmTasks( 'grunt-contrib-watch' );
|
grunt.loadNpmTasks( 'grunt-contrib-watch' );
|
||||||
|
|
||||||
|
|
5053
themes/wporg-5ftf/package-lock.json
generated
5053
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",
|
"cssnano": "4.1.10",
|
||||||
"grunt": "1.3.0",
|
"grunt": "1.3.0",
|
||||||
"grunt-contrib-watch": "1.1.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": "3.1.0",
|
||||||
"grunt-sass-globbing": "1.5.1",
|
"grunt-sass-globbing": "1.5.1",
|
||||||
"node-sass": "5.0.0",
|
"sass": "1.49.9",
|
||||||
"pixrem": "5.0.0",
|
|
||||||
"postcss": "^8.4.13"
|
"postcss": "^8.4.13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue