0.1.0 • Published 9 years ago
svelte-brunch v0.1.0
Installation
- Inside your project, simply run:
npm install --save-dev svelte-brunch - 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...
});0.1.0
9 years ago