An open API service indexing awesome lists of open source software.

https://github.com/sam-parsons/snowpack-plugin-template


https://github.com/sam-parsons/snowpack-plugin-template

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# snowpack-plugin-template

Snowpack plugin that processes JavaScript assets.

## Requirements

This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Snowpack v2.0.0+.

## Install

Using npm:

```console
npm install --save-dev snowpack-plugin-template
```

## Usage

Create a `snowpack.config.js` [configuration file](https://www.snowpack.dev/reference/configuration) and import the plugin:

```js
const dsv = require('snowpack-plugin-template');

module.exports = {
mount: {
public: { url: '/', static: true },
src: { url: '/dist' },
},
plugins: ['snowpack-plugin-template'],
};
```

## Options

### `bundle`

Type: `boolean`

Default: `true`

Do you want a bundle or not?

## Meta

[LICENSE (MIT)](./LICENSE.md)