Fix build scripts for CSS, due to depreciation of node-sass (#263)

This commit is contained in:
Paul Kevan 2024-06-27 10:26:44 +01:00 committed by GitHub
parent 71fa5ab5d3
commit 0fa0278ac7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3189 additions and 3158 deletions

View file

@ -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' );

File diff suppressed because it is too large Load diff

View file

@ -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"
} }
} }