forked from medialize/sass.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsass.options.js
126 lines (124 loc) · 2.95 KB
/
sass.options.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*jshint strict:false, unused:false*/
var BooleanNumber = function(input) {
// in emscripten you pass booleans as integer 0 and 1
return Number(Boolean(input));
};
// map of arguments required by the emscripten wrapper (order relevant!)
// to not have to touch various different spots in this file,
// everything is defined here and registered in the appropriate places.
var options = [
{
// int output_style,
type: 'number',
// Output style for the generated css code
// using Sass.style.*
key: 'style',
initial: 0,
coerce: Number,
},
{
// int precision,
type: 'number',
// Precision for outputting fractional numbers
// 0: use libsass default
key: 'precision',
initial: -1,
coerce: Number,
},
{
// bool source_comments,
type: 'number',
// If you want inline source comments
key: 'comments',
initial: 0,
coerce: BooleanNumber,
},
{
// bool is_indented_syntax_src,
type: 'number',
// Treat source_string as SASS (as opposed to SCSS)
key: 'indentedSyntax',
initial: 0,
coerce: BooleanNumber,
},
{
// bool source_map_contents,
type: 'number',
// embed include contents in maps
key: 'sourceMapContents',
initial: 1,
coerce: BooleanNumber,
},
{
// bool source_map_embed,
type: 'number',
// embed sourceMappingUrl as data uri
key: 'sourceMapEmbed',
initial: 0,
coerce: BooleanNumber,
},
{
// bool omit_source_map_url,
type: 'number',
// Disable sourceMappingUrl in css output
key: 'sourceMapOmitUrl',
initial: 1,
coerce: BooleanNumber,
},
{
// char *source_map_root,
type: 'string',
// Pass-through as sourceRoot property
key: 'sourceMapRoot',
initial: 'root',
coerce: String,
},
{
// char *source_map_file,
type: 'string',
// Path to source map file
// Enables the source map generating
// Used to create sourceMappingUrl
key: 'sourceMapFile',
initial: 'file',
coerce: String,
},
{
// char *input_path,
type: 'string',
// The input path is used for source map generation.
// It can be used to define something with string
// compilation or to overload the input file path.
// It is set to "stdin" for data contexts
// and to the input file on file contexts.
key: 'inputPath',
initial: 'stdin',
coerce: String,
},
{
// char *output_path,
type: 'string',
// The output path is used for source map generation.
// Libsass will not write to this file, it is just
// used to create information in source-maps etc.
key: 'outputPath',
initial: 'stdout',
coerce: String,
},
{
// char *indent,
type: 'string',
// String to be used for indentation
key: 'indent',
initial: ' ',
coerce: String,
},
{
// char *linefeed,
type: 'string',
// String to be used to for line feeds
key: 'linefeed',
initial: '\n',
coerce: String,
},
];