@svelterialjs/process

A Svelte preprocessor for Svelterial.

Usage no npm install needed!

<script type="module">
  import svelterialjsProcess from 'https://cdn.skypack.dev/@svelterialjs/process';
</script>

README

@svelterialjs/process

Version Documentation Maintenance License: MIT Twitter: TheComputerM

A Svelte preprocessor for Svelterial.

🏠 Homepage

Install

npm i -D @svelterialjs/process

Usage

You can use this method with ANY TOOLING YOU PREFER like rollup, webpack and even vite. Just add it to the preprocess method.

const svelterial = require('@svelterialjs/process');
// OR
import svelterial from '@svelterialjs/process';

{
  svelte({
    preprocess: [..., svelterial({ your_config })]
  })
}

Example: Rollup

import svelte from 'rollup-plugin-svelte';
import svelterial from '@svelterialjs/process';

export default {
  plugins: [
    svelte({
      preprocess: svelterial({ your_config }),
    }),
  ],
};

Author

👤 TheComputerM

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 TheComputerM.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator