static build()

in lib/builders/CSSBuilder.ts [19:41]


  static build(buildData: MaterialToolsData): MaterialToolsCSS {

    // Compile the `core` module without the layout.
    // By default the `core` module includes the layout.
    let coreNoLayout = this._compileSCSS(
      this._loadStyles(
        buildData.files.scss
          .sort(path => BASE_SCSS_REGEX.test(path) ? -1 : 1)
          .filter(path => path.indexOf('core') !== -1)
      )
    );

    // CSS for the components, without any layouts or structure.
    let componentCSS = this._loadStyles(
      buildData.files.css.filter(path => path.indexOf('core.css') === -1)
    );

    return this._buildOutput(
      buildData,
      coreNoLayout + componentCSS,
      this._loadStyles(buildData.files.css)
    );
  }