Skip to content

Commit 974ab5a

Browse files
committed
feat: 🎸 add external src support for stand-alone processors
1 parent 8b08464 commit 974ab5a

File tree

14 files changed

+1217
-1133
lines changed

14 files changed

+1217
-1133
lines changed

CHANGELOG.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,23 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6-
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
99

10+
## [v2.15.0](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.4...v2.15.0) - 2019-07-20
11+
12+
### Commits
13+
14+
- feat: 🎸 add external src support for stand-alone processors [`56cef7a`](https://github.com/kaisermann/svelte-preprocess/commit/56cef7a0a2bcd05fdab8c614c259880a7564c2e0)
15+
- Add vscode usage and TOC [`8b08464`](https://github.com/kaisermann/svelte-preprocess/commit/8b0846465b7ed134f6eea8fb6affc5e6be26b343)
16+
1017
## [v2.14.4](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.3...v2.14.4) - 2019-07-06
1118

1219
### Commits
1320

1421
- feat: 🎸 allow to watch stylus dependencies [`8aa3dfc`](https://github.com/kaisermann/svelte-preprocess/commit/8aa3dfcd73730688c3a4d555ebf5a56cf36c669f)
15-
- docs: ✏️ minor readme revision [`d88350d`](https://github.com/kaisermann/svelte-preprocess/commit/d88350d9be791ab5816d8af8a9525c470a20c70b)
1622

1723
## [v2.14.3](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.1...v2.14.3) - 2019-07-01
1824

@@ -79,7 +85,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
7985

8086
### Commits
8187

82-
8388
## [v2.9.1](https://github.com/kaisermann/svelte-preprocess/compare/v2.9.0...v2.9.1) - 2019-05-21
8489

8590
### Commits

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ _Note: only for auto preprocessing_
5656

5757
### External files support
5858

59-
_Note: only for auto preprocessing_
60-
6159
```html
6260
<template src="template.html"></template>
6361
<script src="./script.js"></script>
@@ -128,7 +126,7 @@ Current supported out-of-the-box preprocessors are `SCSS`, `Stylus`, `Less`, `Co
128126
129127
### Auto Preprocessing
130128
131-
In auto preprocessing mode, `svelte-preprocess` automatically uses the respective preprocessor for your code based on your `type="..."` or `lang="..."` attributes. It also handles the `<template>` tag for markup, external files and global styling.
129+
In auto preprocessing mode, `svelte-preprocess` automatically uses the respective preprocessor for your code based on your `type="..."` or `lang="..."` attributes. It also handles the `<template>` tag for markup, external files and global styling. It's as simple as importing the module and executing the default exported method.
132130
133131
#### Basic
134132
@@ -227,7 +225,7 @@ const options = {
227225
svelte.preprocess(input, preprocess(options)).then(...)
228226
```
229227
230-
### Standalone processors
228+
### Stand-alone processors
231229
232230
Instead of a single processor, [Svelte v3 has added support for multiple processors](https://svelte.dev/docs#svelte_preprocess). In case you want to manually configure your preprocessing step, `svelte-preprocess` exports these named processors:
233231

0 commit comments

Comments
 (0)