2.1.0 • Published 2 years ago

@packmule/sass-pack v2.1.0

Weekly downloads
500
License
MIT
Repository
github
Last release
2 years ago

Sass Pack

Compile Sass to CSS.

Sass Pack uses PostCSS to transform code as needed. To configure PostCSS settings in your project, a .postcssrc.json file can be used. stylelint is used to lint Sass code, which can be configured via a stylelint.json file.

Setup

npm install --save-dev @packmule/sass-pack sass stylelint

API

SassPack()
    .include(glob: string)
    .importer(importer: Function)
    .modules()

Options

  • optimize - Enables or disables minification of the generated CSS.
  • debug - Controls generation of source maps for the generated CSS.
  • lint - Defines whether code linting via stylelint is enabled or not.
  • fix - Defines whether code fixing via stylelint is enabled or not.
  • extract - Used to determine if actual CSS files are being created.
  • hash - Configures whether file name hashing is enabled or not.

Usage

Example

Configure compiling SCSS to CSS.

import Packmule from '@packmule/core';
import SassPack from '@packmule/sass-pack';
import MagicImporter from 'node-sass-magic-importer';

const packmule = new Packmule();
packmule.register(new SassPack().importer(MagicImporter()));
return packmule.generate();

License

MIT


2.1.1-next.0

2 years ago

2.1.1-nightly.0

2 years ago

2.0.1-next.569

2 years ago

2.1.0

2 years ago

2.0.1-next.570

2 years ago

2.0.1-next.567

3 years ago

2.0.1-next.568

3 years ago

2.0.1-next.563

3 years ago

2.0.1-next.562

3 years ago

2.0.1-next.565

3 years ago

2.0.1-next.564

3 years ago

2.0.1-next.534

3 years ago

2.0.1-next.535

3 years ago

2.0.1-next.532

3 years ago

2.0.1-next.531

3 years ago

2.0.1-next.529

3 years ago

2.0.1-next.523

3 years ago

2.0.1-next.525

3 years ago

2.0.1-rc.525

3 years ago

2.0.1-next.522

4 years ago

2.0.1-next.521

4 years ago

2.0.1-next.520

4 years ago

2.0.1-next.515

4 years ago

2.0.1-next.519

4 years ago

2.0.1-next.514

4 years ago

2.0.1-next.513

4 years ago

2.0.1-next.509

4 years ago

2.0.1-next.512

4 years ago

2.0.1-next.511

4 years ago

2.0.1-next.510

4 years ago

2.0.1-next.508

4 years ago

2.0.1-next.507

4 years ago

2.0.1-next.505

4 years ago

2.0.1-next.506

4 years ago

2.0.1-next.503

4 years ago

2.0.1-next.501

4 years ago

2.0.1-next.495

4 years ago

2.0.1-next.494

4 years ago

2.0.1-next.497

4 years ago

2.0.1-next.498

4 years ago

2.0.1-next.500

4 years ago

2.0.1-nightly.0

4 years ago

2.0.1-next.489

4 years ago

2.0.1-next.0

4 years ago

2.0.1-next.490

4 years ago

2.0.1-next.472

4 years ago

2.0.1-next.469

4 years ago

2.0.1-next.470

4 years ago

2.0.1-next.466

4 years ago

2.0.1-next.459

4 years ago

2.0.1-next.458

4 years ago

2.0.1-next.457

4 years ago

2.0.1-next.450

4 years ago

2.0.1-next.438

5 years ago

2.0.1-next.446

5 years ago

2.0.1-next.448

5 years ago

2.0.1-next.447

5 years ago

2.0.1-next.449

5 years ago

2.0.1-next.437

5 years ago

2.0.1-next.436

5 years ago

2.0.1-next.435

5 years ago

2.0.1-next.434

5 years ago

2.0.1-next.433

5 years ago

2.0.1-next.432

5 years ago

2.0.1-next.431

5 years ago

2.0.1-next.429

5 years ago

2.0.1-next.430

5 years ago

2.0.1-next.428

5 years ago

2.0.1-next.427

5 years ago

2.0.1-next.426

5 years ago

2.0.1-next.425

5 years ago

2.0.1-next.424

5 years ago

2.0.1-next.417

5 years ago

2.0.1-next.418

5 years ago

2.0.1-next.416

5 years ago

2.0.1-next.415

5 years ago

2.0.1-next.413

5 years ago

2.0.1-next.412

5 years ago

2.0.1-next.414

5 years ago

2.0.1-next.411

5 years ago

2.0.1-next.410

5 years ago

2.0.1-next.409

5 years ago

2.0.1-next.408

5 years ago

2.0.1-next.407

5 years ago

2.0.1-next.406

5 years ago

2.0.1-next.404

5 years ago

2.0.1-next.405

5 years ago

2.0.1-next.403

5 years ago

2.0.1-next.402

5 years ago