Skip to content

Build options: Custom styles

Andrew Koltyakov edited this page Oct 4, 2017 · 1 revision

sp-build-tasks uses SCSS as a language for CSS sources. SCSS files can store raw CSS as well.

SharePoint mapping paths are configured in ./config/app.json within the following parameters:

{
  ...
  // customStyles: Array or a single object element src/dist pair 
  // of source style entry point and output bundle file
  "customStyles": [{
    "src": "styles/frankfurt/frankfurt.scss",
      // Source entry point path
      // relative to './src'
    "dist": "styles/frankfurt.min.css"
      // Output .css file path
      // relative to './dist'
  }],
  ...
}
Clone this wiki locally