node-sass-compiler
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

sass-compiler

NPM Version NPM Downloads Node.js Version License

A compiler for scss and sass files to css

Installation

Install the package using npm or yarn as a dev dependency.

NPM

npm install --save-dev node-sass-compiler

Yarn

yarn add --dev node-sass-compiler

Basic usage

sass-compiler

This command will compile all the scss and sass files in the . directory and will output the css files in the same directory.

For customize the input and output directories you must create a sass-compiler.config.js file in the root of your project.

module.exports = {
    entries: [
        {
            baseDir: './src/app/scss',
            outputDir: './src/app/css',
        }
    ]
}

It replies the directory structure of the baseDir directory in the outputDir directory.

You can create multiple entries to compile multiple directories.

Development

If you don't want to run the command every time you make a change in the scss files, you can use the --watch flag.

sass-compiler --watch

Options

  • --watch: Watch the files for changes and recompile them on the fly.
  • --config: Specify the path to the configuration file. By default, it will look for a sass-compiler.config.js file in the root of your project.
  • --verbose: Show more information about the compilation process.
  • --version or -v: Show the version of the package.
  • --help or -h: Show the help message.

Author

Juan Carlos Martínez - juancarlosmartinez

Readme

Keywords

Package Sidebar

Install

npm i node-sass-compiler

Weekly Downloads

81

Version

0.2.1

License

MIT

Unpacked Size

30 kB

Total Files

12

Last publish

Collaborators

  • juanc.martinez.org