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' )( {
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' );