1
NPM
For use with a project using a bundler like Webpack, Rollup, or Parcel
Installation
npm install --save bulma svelma2 rollup-plugin-postcss
undefined
rollup-plugin-postcss
rollup.config.js
import postcss from 'rollup-plugin-postcss' // ... export default { // ... plugins: [ svelte({ // ... }), postcss(), } }
Usage
<!-- App.svelte --> <script> import 'bulma/css/bulma.css' </script>
<script> import { Button } from 'svelma2' </script> <Button>I am a Button</Button>
<script> import { Svelma } from 'svelma2' </script> <Svelma.Button>I am a Button</Svelma.Button>
2
CDN
Coming soon..