Skip to content

Commit 1e271a9

Browse files
vrallewebdiscus
authored andcommitted
feat: Introduce spell checking (#158)
* feat: Introduce spell checking * fix: Typos in md docs * chore: Remove list of correct words from cspell config * chore: improve cspell config and fix spelling in readme
1 parent 3be2594 commit 1e271a9

8 files changed

Lines changed: 3039 additions & 1391 deletions

File tree

.cspell.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "0.2",
3+
"maxNumberOfProblems": 500,
4+
"allowCompoundWords": true,
5+
"dictionaries": ["!aws", "!cryptocurrencies", "fullstack", "custom-words"],
6+
"dictionaryDefinitions": [
7+
{
8+
"name": "custom-words",
9+
"description": "Additional dictionary",
10+
"path": "./.dictionaries/custom-words.txt"
11+
}
12+
],
13+
"language": "en",
14+
"useGitignore": true,
15+
"ignorePaths": [".dictionaries/", "test/", "examples/", "experiments/"],
16+
"ignoreRegExpList": [".?svg"]
17+
}

.dictionaries/custom-words.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
serv
2+
styl
3+
weba
4+
liquidjs
5+
iesafe
6+
7+
# People/user names
8+
Robitaille
9+
Kannwischer
10+
kannwism
11+
Ackloo
12+
Gregor
13+
Dschung

CHANGELOG.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Consider `generator.dataUrl()` and `generator.dataUrl.encoding` Webpack options.
7272

7373
## 4.18.0-beta.2 (2025-02-03)
7474

75-
- feat: if the `router` option is specified and not disabled,
75+
- feat: if the `router` option is specified and not disabled,
7676
then ensure that `a.href` is present in the `sources` option
7777
- fix: if router is disabled and sources contains attributes matching a route file, then doesn't resolve it
7878

@@ -89,7 +89,7 @@ Consider `generator.dataUrl()` and `generator.dataUrl.encoding` Webpack options.
8989
- feat: improve the `sources[].filter()` function, it can now return a string to modify the original value
9090
- feat: add the `sources[].postprocess()` function, called after resolving output filenames\
9191
**NOTE:** `postprocess` works only for `a.href` contained any `*.html` file
92-
- fix: does not resolve an attribute containing a specific link, e.g. `whatsapp://send?abid=1234567890&text=Hello`
92+
- fix: does not resolve an attribute containing a specific link, e.g. `whatsapp://send?id=1234567890&text=Hello`
9393

9494
## 4.17.0 (2025-01-29)
9595

@@ -179,7 +179,7 @@ Consider `generator.dataUrl()` and `generator.dataUrl.encoding` Webpack options.
179179
- feat: add support for the `?inline` query by importing SVG file in JS as data URL
180180
```js
181181
import file from './image.svg'; // import according the matched webpack config, defaults as output filename
182-
182+
183183
import file from './image.svg?inline'; // import as UTF-8 data URL
184184
import file from './image.svg?inline=utf8'; // import as UTF-8 data URL
185185
import file from './image.svg?inline=base64'; // import as base64-encoded data URL
@@ -233,7 +233,7 @@ Consider `generator.dataUrl()` and `generator.dataUrl.encoding` Webpack options.
233233

234234
- feat: rebuilt all entry point templates by serve/watch, after a partial file is modified, #127.\
235235
**The problem:**
236-
Webpack doesn't know which partials are used in which templates, so Webpack can't rebuild the main template (entrypoint) where a partial has changed.
236+
Webpack doesn't know which partials are used in which templates, so Webpack can't rebuild the main template (entrypoint) where a partial has changed.
237237

238238
## 4.8.1 (2024-12-06)
239239

@@ -299,7 +299,7 @@ Consider `generator.dataUrl()` and `generator.dataUrl.encoding` Webpack options.
299299
## 4.4.2 (2024-11-18)
300300

301301
- fix: add Exception when used `splitChunks` and occurs the error: Can't resolve a CSS file in template
302-
- fix: correct Exception message when a source CSS file is not found
302+
- fix: correct Exception message when a source CSS file is not found
303303

304304
## 4.4.1 (2024-11-05)
305305

@@ -332,7 +332,7 @@ Consider `generator.dataUrl()` and `generator.dataUrl.encoding` Webpack options.
332332
WARNING: Webpack version `5.96.0` introduces the BREAKING CHANGE in the `CodeGenerationResults` class!
333333
- feat: add support for Webpack `>= 5.96` to correct CSS lazy loading
334334
WARNING: Webpack version `5.96.0` introduces the BREAKING CHANGE in the `AssetGenerator` class!
335-
- chore: update package and devel dependencies
335+
- chore: update package and dev dependencies
336336
- test: update tests
337337

338338
## 4.1.4 (2024-11-01)
@@ -342,7 +342,7 @@ Consider `generator.dataUrl()` and `generator.dataUrl.encoding` Webpack options.
342342
## 4.1.3 (2024-10-28)
343343

344344
- fix: if `filesystem` cache is used, webpack stats or errors are not displayed, #115
345-
- test: allow set the `stats.preset` webpack option to display stats info by testing
345+
- test: allow set the `stats.preset` webpack option to display stats info by testing
346346

347347
## 4.1.2 (2024-10-21)
348348

@@ -499,7 +499,7 @@ module.exports = [
499499

500500
- fix: ERROR in RealContentHashPlugin in serv/watch mode after adding new import file
501501
- fix: when using integrity occurs ERROR in RealContentHashPlugin in serv/watch mode after changes by using dynamic import
502-
502+
503503
### MISC
504504

505505
- refactor: rewrite all static classes to regular, this is needed to support webpack multiple configurations
@@ -671,7 +671,7 @@ See release 4.0.0
671671
});
672672
}
673673
}
674-
674+
675675
module.exports = {
676676
plugins: [
677677
new MyPlugin({
@@ -764,7 +764,7 @@ See release 4.0.0
764764
## 3.5.0 (2024-02-18)
765765
766766
- feat: add support for the `Pug` template engine.
767-
The `pug` preprocessor based on the [@webdiscus/pug-loader](https://github.com/webdiscus/pug-loader) source code
767+
The `pug` preprocessor based on the [@webdiscus/pug-loader](https://github.com/webdiscus/pug-loader) source code
768768
and has the same options and features.
769769
- test: add pug tests
770770
- docs: add documentation for using the pug
@@ -852,7 +852,7 @@ See release 4.0.0
852852
For example:
853853
```js
854854
import personTmpl from './partials/person.ejs';
855-
855+
856856
// render template function with variables in browser
857857
document.getElementById('person').innerHTML = personTmpl({ name: 'Walter White', age: 50});
858858
```
@@ -939,7 +939,7 @@ See release 4.0.0
939939
```js
940940
const HtmlBundlerPlugin = require('html-bundler-webpack-plugin');
941941
const { FaviconsBundlerPlugin } = require('html-bundler-webpack-plugin/plugins');
942-
942+
943943
module.exports = {
944944
plugins: [
945945
new HtmlBundlerPlugin({
@@ -965,7 +965,7 @@ See release 4.0.0
965965
style.rel = 'stylesheet';
966966
document.head.appendChild(style);
967967
}
968-
968+
969969
loadCSS(require('./style.scss?url')); // <= dynamic load the source style file with `url` query
970970
```
971971
- feat: add `js.inline.attributeFilter` option to keep some original script tag attributes when JS is inlined.\
@@ -1034,7 +1034,7 @@ See release 4.0.0
10341034
style.rel = 'stylesheet';
10351035
document.head.appendChild(style);
10361036
}
1037-
1037+
10381038
loadCSS(require('./style.scss?lazy')); // <= dynamic load the source style file with `lazy` query
10391039
```
10401040
- feat(EXPERIMENTAL): add `beforePreprocessor` hook, undocumented
@@ -1469,7 +1469,7 @@ See release 4.0.0
14691469
loaderOptions: {
14701470
preprocessor: 'nunjucks', // <= NEW 'nunjucks' value
14711471
preprocessorOptions: {
1472-
// async: true, // dafaults is false, to compile asynchronous templates set as true
1472+
// async: true, // defaults is false, to compile asynchronous templates set as true
14731473
},
14741474
},
14751475
}),
@@ -1757,7 +1757,7 @@ If you have pure HTML file you can disable this processing to save the compilati
17571757
- feat: improve verbose information output for extracted scripts
17581758
- fix: resolve scripts in diff pages generated from one template
17591759
- fix: warning for duplicate files when many html files are generated from one template
1760-
- refactor: optimise code structure, code cleanup
1760+
- refactor: optimize code structure, code cleanup
17611761
- refactor: optimize code for processing of scripts
17621762
- test: add base and advanced test template for new issues
17631763
- chore: add GitHub CONTRIBUTING.md
@@ -1775,7 +1775,7 @@ If you have pure HTML file you can disable this processing to save the compilati
17751775
- fix: resolve assets when the same file is used on many pages generated from the same template
17761776
- fix: pass data to template after changes when using HMR
17771777
- fix: by verbose display a file path relative by working directory instead of an absolute path
1778-
- refactor: code optimisation
1778+
- refactor: code optimization
17791779
- test: add tests for bugfixes
17801780
- docs: update readme
17811781
@@ -1843,8 +1843,8 @@ If you have pure HTML file you can disable this processing to save the compilati
18431843
- feat: add to default resolving the `data` attribute of `object` tag
18441844
- feat: add supports the `responsive-loader`
18451845
- fix: resolve exact attribute name w/o leading wildcard
1846-
- fix: resolve mutiline attributes
1847-
- fix: resolve mutiline values in srcset attribute
1846+
- fix: resolve multiline attributes
1847+
- fix: resolve multiline values in srcset attribute
18481848
- test: add tests for new options, messages
18491849
- docs: update readme
18501850

0 commit comments

Comments
 (0)