Skip to content

Commit

Permalink
MDL-73144 core: switch to Dart sass
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 10, 2023
1 parent 5e1df25 commit 98bcff8
Show file tree
Hide file tree
Showing 22 changed files with 32,783 additions and 25,332 deletions.
14 changes: 8 additions & 6 deletions .grunt/tasks/componentlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = grunt => {
grunt.log.write(result);

if (error) {
grunt.log.error(result.stdout);
process.exit(code);
}
done();
Expand All @@ -56,7 +57,7 @@ module.exports = grunt => {
* @param {array} args
* @returns {object}
*/
const spawnNodeCall = args => grunt.util.spawn({
const spawnNodeCall = (args) => grunt.util.spawn({
cmd: 'node',
args,
}, getSpawnHandler(grunt.task.current.async()));
Expand Down Expand Up @@ -91,13 +92,14 @@ module.exports = grunt => {
* @returns {Object} Reference to the spawned task
*/
const cssBuild = () => spawnNodeCall([
'node_modules/node-sass/bin/node-sass',
'--output-style', 'expanded',
'--source-map', true,
'--source-map-contents', true,
'node_modules/.bin/sass',
'--style', 'expanded',
'--source-map',
'--embed-sources',
'--precision', 6,
'--load-path', process.cwd(),
getCLPath('hugo/scss/docs.scss'),
'-o', getCLPath('hugo/dist/css/'),
getCLPath('hugo/dist/css/docs.css'),
]);

// Register the various component library tasks.
Expand Down
2 changes: 1 addition & 1 deletion .grunt/tasks/sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = grunt => {
}
},
options: {
implementation: require('node-sass'),
implementation: require('sass'),
includePaths: ["theme/boost/scss/", "theme/classic/scss/"]
}
},
Expand Down
Loading

0 comments on commit 98bcff8

Please sign in to comment.