You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let{ parse, stringify }=require('scss-parser')// Create an AST from a string of SCSSletast=parse('.hello { color: $red; }')// Modify the AST (see below for a better way to do this)ast.value[0].value[0].value[0].value[0].value='world'// Convert the modified AST back to SCSSletscss=stringify(ast)// .world { color: $red; }
npm i 'scss-parser'
Then
won't return
.world { color: $red; }
but.hello { color: $red; }
The text was updated successfully, but these errors were encountered: