![]() ![]() An example of such syntax is our use of the new module imports, which future-proofs the project and allows for better namespacing. This allows us to use new, powerful syntax when writing SCSS. You can use any Compass SCSS files as follows: // Nav styles 'path/to/node_modules/cwf/components/nav' Ĭompass uses the sass compiler instead of the default but deprecated node-sass compiler for compiling SCSS to CSS. If you’re using a build-system that uses something like Webpack with support for ES2015+ modules, you can import any Compass component JS as follows: // Nav class (from nav JS) import = require( 'cwf/dist/components/breadcrumb/index.cjs') npm install don’t recommend this option, as installing via Git causes maintenance issues, such as no version tracking (so NPM will always say Compass is outdated). If you don’t want to use VCU’s NPM registry, you can install Compass as an NPM dependency from our SCM repo via Git. ![]() ![]() With VCU’s NPM registry set as your default, you can now install Compass like any other package. # Global configurationĮcho 'registry=' >. Our recommendation is to use VCU’s NPM registry globally, as it’s the simplest solution with little-to-no project maintenance. To avoid having to include the registry flag every time you install Compass, set your global or project’s NPM registry to VCU’s NPM registry. npm install cwf -registry= Updating your default registry Compass is hosted on a private software distribution server, and installing it via this method requires you to be on VCU’s network. The easiest way to include Compass as an NPM dependency in your next project is through VCU’s NPM registry. You can include Compass as an NPM dependency in your next project, allowing you to pull in just the HTML, JS, or SCSS that you need. This repository holds the source files of core Compass assets. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |