0.1.6 • Published 7 months ago

node-sass-compiler v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

0.1.6

7 months ago

0.1.5

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago

0.0.0

8 months ago