https://github.com/sam-parsons/snowpack-plugin-template
https://github.com/sam-parsons/snowpack-plugin-template
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sam-parsons/snowpack-plugin-template
- Owner: sam-parsons
- License: mit
- Created: 2021-06-05T20:49:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-08T22:30:52.000Z (about 3 years ago)
- Last Synced: 2025-01-21T17:34:46.081Z (3 months ago)
- Language: JavaScript
- Size: 75.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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)