/svelte-loader

Webpack loader for svelte components.

Primary LanguageJavaScript

svelte-loader

Build Status

A webpack loader for svelte.

Usage

Configure inside your webpack.config.js:

  ...
  module: {
    rules: [
      ...
      {
        test: /\.(html|svelte)$/,
        exclude: /node_modules/,
        use: 'svelte-loader'
      }
      ...
    ]
  }
  ...

Checkout example setup.

License

MIT