Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
6db732ac
Commit
6db732ac
authored
Sep 24, 2015
by
Jeremy John
Committed by
xzyfer
Mar 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more detailed usage examples to cli --help
Closes #1177 Closes #1178
parent
71f9428d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
node-sass
bin/node-sass
+15
-7
No files found.
bin/node-sass
View file @
6db732ac
...
...
@@ -20,14 +20,18 @@ var cli = meow({
pkg
:
'../package.json'
,
version
:
process
.
sass
.
versionInfo
,
help
:
[
'Usage'
,
' node-sass [options] <input.scss>
[output.css]
'
,
'Usage
:
'
,
' node-sass [options] <input.scss>'
,
' cat <input.scss> | node-sass [options] > output.css'
,
''
,
'Example'
,
' node-sass --output-style compressed foobar.scss foobar.css'
,
'Example
: Compile foobar.scss to foobar.css
'
,
' node-sass --output-style compressed foobar.scss
>
foobar.css'
,
' cat foobar.scss | node-sass --output-style compressed > foobar.css'
,
''
,
'Example: Watch the sass directory for changes, compile with sourcemaps to the css directory'
,
' node-sass --watch --recursive --output css'
,
' --source-map true --source-map-contents sass'
,
''
,
'Options'
,
' -w, --watch Watch a directory or file'
,
' -r, --recursive Recursively watch directories or files'
,
...
...
@@ -366,9 +370,13 @@ if (!options.src && process.stdin.isTTY) {
emitter
.
emit
(
'error'
,
[
'Provide a Sass file to render'
,
''
,
' Example'
,
' node-sass --output-style compressed foobar.scss foobar.css'
,
' cat foobar.scss | node-sass --output-style compressed > foobar.css'
'Example: Compile foobar.scss to foobar.css'
,
' node-sass --output-style compressed foobar.scss > foobar.css'
,
' cat foobar.scss | node-sass --output-style compressed > foobar.css'
,
''
,
'Example: Watch the sass directory for changes, compile with sourcemaps to the css directory'
,
' node-sass --watch --recursive --output css'
,
' --source-map true --source-map-contents sass'
,
].
join
(
'
\
n'
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment