@deskeen/web-builder-inline-sass

0.2.0 • Public • Published

Web Builder Module - Inline SASS files

This module allows the @deskeen/web-builder engine to inline CSS/SASS files.

It uses dart-sass under the hood to parse and minify the text.

Install

npm install @deskeen/web-builder
npm install @deskeen/web-builder-inline-sass

Usage

And add the module to the list of modules:

const builder = require('@deskeen/web-builder')
await builder.build({
  source: [
    // List of files or directories that include
    // {{inlineSASS:file.scss}} tags
  ],
  modules: [
    [
      '@deskeen/web-builder-inline-sass',
      {
        assets: [
          // List of directories that contain
          // the sass files included in the tags
        ],
        sassOptions: {
          // See https://github.com/sass/dart-sass
          // for a complete list of options
        },
        // Minify output
        // Same as option: outputStyle='compressed'
        minify: true,
      }
    ]
  ]
})

Contact

You can reach me at {my_firstname}@{my_name}.fr

Licence

MIT Licence - Copyright (c) Morgan Schmiedt

Package Sidebar

Install

npm i @deskeen/web-builder-inline-sass

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

5.51 kB

Total Files

5

Last publish

Collaborators

  • deskeen