Skip to content

kazzkiq/svelte-brunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

Installation

  1. Inside your project, simply run: npm install --save-dev svelte-brunch
  2. Thats it.

This plugin listen for any .svelte file in your project and compiles it with your JavaScript.

Here is an example of how to import a component to your page (using ES6):

// initialize.js
// importing mycomponent.svelte file
import MyComponent from './path/to/mycomponent' // notice how we omit the '.svelte' extension

const mycomp = new MyComponent({
  // Svelte opts, etc...
});

About

Compile Svelte components inside Brunch projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published