Skip to content

Commit

Permalink
Fix build scripts for CSS, due to depreciation of node-sass (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkevan authored Jun 27, 2024
1 parent 71fa5ab commit 0fa0278
Show file tree
Hide file tree
Showing 3 changed files with 3,125 additions and 3,094 deletions.
5 changes: 2 additions & 3 deletions themes/wporg-5ftf/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ module.exports = function( grunt ) {
require( 'autoprefixer' )( {
cascade: false
} ),
require( 'pixrem' ),
require('cssnano')( {
mergeRules: false
} )
Expand All @@ -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],
Expand Down Expand Up @@ -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' );

Expand Down
Loading

0 comments on commit 0fa0278

Please sign in to comment.