Visitar URL original
uswds/examples/node-sass at develop · sitedata/uswds · GitHub
Skip to content

Latest commit

 

History

History
 
 

node-sass

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Using the Design System with node-sass

This example illustrates how to install both the USWDS and node-sass with npm, and automate the compilation of CSS files from the source files.

All of the "logic" for this example lives in package.json. Before compiling the CSS, you have to install the Node dependencies with npm:

npm install

Once you've done this, you can modify src/css/main.scss (or any .scss file in src/css) and run the following command to build the CSS once:

npm run build:css

Or run the following to watch the source files and rebuild the CSS whenever they're changed:

npm run watch:css

See the node-sass CLI docs for more information.