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
605800d9
Commit
605800d9
authored
Mar 23, 2016
by
Michael Mifsud
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1421 from xzyfer/feat/better-help
Add more detailed usage examples to cli --help
parents
2e858b12
6db732ac
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 @
605800d9
...
...
@@ -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