@brikcss/stakcss-bundler-ejs

Stakcss bundler which compiles ejs.

Usage no npm install needed!

<script type="module">
  import brikcssStakcssBundlerEjs from 'https://cdn.skypack.dev/@brikcss/stakcss-bundler-ejs';
</script>

README

Stakcss EJS Bundler

Bundler for Stakcss that compiles EJS.

NPM version NPM downloads per month Travis branch NPM version Coverage Status Commitizen friendly semantic release code style: prettier

Install

npm install @brikcss/stakcss @brikcss/stakcss-bundler-ejs --save-dev

Usage

Add the bundler to Stakcss and configure like any other bundler:

  • Node:
    stak({
        bundlers: ['@brikcss/stakcss-bundler-ejs']
    });
    // or with options and data:
    stak({
        bundlers: [{
            run: '@brikcss/stakcss-bundler-ejs',
            options: {},
            data: {}
        }]
    });
    
  • CLI:
    stak ... --bundlers=@brikcss/stakcss-bundler-ejs
    

Bundler Configuration

Note: From a CLI, you must use a config file (--config=<path>) to configure the bundler.

  • bundler.options {Object} Options passed to EJS. The default options are: { _with: false, localsName: 'data' }.
  • bundler.data {Object | String} Data to compile EJS content with. Can be actual data or a String, which is treated as a path to a data file which can be "required" into node.

See Stakcss for more on using Stakcss bundlers.