Skip to content

jemgold/rollup-plugin-sketch-livereload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-sketch-livereload

Rollup plugin for rerunning a Sketch plugin after it changes.

Install

Using npm:

npm install rollup-plugin-sketch-livereload --save-dev

Using yarn:

yarn add rollup-plugin-sketch-livereload -D

Usage

const livereload = require('rollup-plugin-sketch-livereload')
const { main } = require('./package.json');

module.exports = {
  plugins: [
    livereload({
      enabled: process.env.RENDER === 'true',
      bundle: main,
    }),
  ]
}

Options

enabled

Whether to render.

Boolean, defaults to true.

bundle

Location of the .sketchplugin file. If you're using skpm, you can use main from package.json.

String

command

Identifier to the command in the Sketch plugin's manifest.json.

String, defaults to main.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages