Easy to compile TypeScript/Less/Sass/Scss, Minify JS/CSS With VS Code
Easily work with LESS/SASS/SCSS/TYPESCRIPT files in Visual Studio Code.
“Compile-on-save” for LESS/SASS/SCSS/TypeScript files without using a build task.
For TypeScript, Only compile after you setup outfile or outdir.
Run Command “Minify - Easy Complie” to minify files
easycompile.sass {}
easycompile.less {}
easycompile.typescript {}
easycompile.css {
"outDir": { string }
support ${workspaceRoot}
"outExt": { string }
e.g. .min.css
instead of .css
"autoprefixer": { string }
e,g. > 5%; last 2 Chrome versions; not ie 6-9
"groupmedia": { boolean }
This enables the group media queries plugin (included)
"sourceMap": { boolean }
"sourceMapFileInline": { boolean }
}
easycompile.js {
"outDir": { string }
support ${workspaceRoot}
"outExt": { string }
e.g. .min.js
instead of .js
"surround": { string }
e.g. (function (){ ${code} })()
"compress": { object }
implement UglifyJS Compress setting [compress-options]
}
Example:
// out: ../dist/app.css, compress: true, sourceMap: false, autoprefixer: last 5 versions, groupmedia: true
body, html {
...
}
// outdir: ../../
import * ...
...
main: { filepath: string | string[] }
out: { boolean | filepath: string | folderpath: string }
"out": false
setting, where you only want certain .less
files to be generated. .css
.css
extensionFilepath is relative to the current file.
outExt: { string }
.css
..wxss
instead of .css
).map
file also (e.g. .wxss.map
)compress: { boolean }
autoprefixer: { string | string[] }
autoprefixer
option is the comma-separated list of browsers
for autoprefixer to use (or alternatively a string array of them).// autoprefixer: > 5%; last 2 Chrome versions; not ie 6-9, sourceMap: true, out: ../css/style.css
groupmedia: { boolean }
"easycompile.compile": {
"ignore" : [
"**/_*.scss"
]
}
"easycompile.compile": {
"minifyJsOnSave": true,
"minifyCssOnSave": true
}
Enjoy!