mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-05 02:15:45 +03:00
Fix build scripts for CSS, due to depreciation of node-sass
(#263)
This commit is contained in:
parent
71fa5ab5d3
commit
0fa0278ac7
3 changed files with 3189 additions and 3158 deletions
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue