sam-parsons / snowpack-plugin-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snowpack-plugin-template

Snowpack plugin that processes JavaScript assets.

Requirements

This plugin requires an LTS Node version (v8.0.0+) and Snowpack v2.0.0+.

Install

Using npm:

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

Usage

Create a snowpack.config.js configuration file and import the plugin:

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)

About

License:MIT License


Languages

Language:JavaScript 100.0%