티스토리 뷰
node-sass
Install
npm install node-sass
Command Line Interface
The interface for command-line usage is fairly simplistic at this stage, as seen in the following usage section.
Output will be sent to stdout if the --output
flag is omitted.
Usage
node-sass [options] <input> [output]
Or: cat <input> | node-sass > output
Example:
node-sass src/style.scss dest/style.css
Options:
-w, --watch Watch a directory or file
-r, --recursive Recursively watch directories or files
-o, --output Output directory
-x, --omit-source-map-url Omit source map URL comment from output
-i, --indented-syntax Treat data from stdin as sass code (versus scss)
-q, --quiet Suppress log output except on error
-v, --version Prints version info
--output-style CSS output style (nested | expanded | compact | compressed)
--indent-type Indent type for output CSS (space | tab)
--indent-width Indent width; number of spaces or tabs (maximum value: 10)
--linefeed Linefeed style (cr | crlf | lf | lfcr)
--source-comments Include debug info in output
--source-map Emit source map
--source-map-contents Embed include contents in map
--source-map-embed Embed sourceMappingUrl as data URI
--source-map-root Base path, will be emitted in source-map as is
--include-path Path to look for imported files
--follow Follow symlinked directories
--precision The amount of precision allowed in decimal numbers
--error-bell Output a bell character on errors
--importer Path to .js file containing custom importer
--functions Path to .js file containing custom functions
--help Print usage info
https://github.com/sass/node-sass
'■ 백엔드 ■ > NodeJS' 카테고리의 다른 글
--save와 --save-dev 차이 (0) | 2018.05.14 |
---|---|
vue-axios (0) | 2018.05.09 |
vue-lodash (0) | 2018.05.09 |
concat (0) | 2018.05.09 |
1. NPM (0) | 2017.07.14 |
댓글