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
28e9cac5
Commit
28e9cac5
authored
Apr 19, 2013
by
Andrew Nesbitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added outputStyle option to middleware, closes #81
parent
754c433c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletions
+4
-1
README.md
README.md
+1
-0
middleware.js
examples/middleware.js
+1
-0
middleware.js
lib/middleware.js
+2
-1
No files found.
README.md
View file @
28e9cac5
...
...
@@ -45,6 +45,7 @@ var server = connect.createServer(
src
:
__dirname
,
dest
:
__dirname
+
'/public'
,
debug
:
true
,
outputStyle
:
'compressed'
}),
connect
.
static
(
__dirname
+
'/public'
)
);
...
...
examples/middleware.js
View file @
28e9cac5
...
...
@@ -14,6 +14,7 @@ var server = connect.createServer(
src
:
__dirname
,
dest
:
__dirname
+
'/public'
,
debug
:
true
,
outputStyle
:
'compressed'
}),
connect
.
static
(
__dirname
+
'/public'
)
);
...
...
lib/middleware.js
View file @
28e9cac5
...
...
@@ -18,6 +18,7 @@ var imports = {};
* `src` Source directory used to find .styl files
* `dest` Destination directory used to output .css files
* when undefined defaults to `src`.
* `outputStyle` Sass output style (nested,expanded, compact or compressed)
*
* Examples:
*
...
...
@@ -110,7 +111,7 @@ module.exports = function(options){
});
},
{
include_paths
:
[
sassDir
].
concat
(
options
.
include_paths
||
[]),
output_style
:
options
.
output_style
output_style
:
options
.
output_style
||
options
.
outputStyle
});
});
}
...
...
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