Skip to content

Commit c0e9c22

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 3d41c79 commit c0e9c22

File tree

8 files changed

+1411
-218
lines changed

8 files changed

+1411
-218
lines changed

.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
@@ -15,7 +15,7 @@
1515

1616
## 4.18.0-beta.2 (2025-02-03)
1717

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

@@ -32,7 +32,7 @@
3232
- feat: improve the `sources[].filter()` function, it can now return a string to modify the original value
3333
- feat: add the `sources[].postprocess()` function, called after resolving output filenames\
3434
**NOTE:** `postprocess` works only for `a.href` contained any `*.html` file
35-
- fix: does not resolve an attribute containing a specific link, e.g. `whatsapp://send?abid=1234567890&text=Hello`
35+
- fix: does not resolve an attribute containing a specific link, e.g. `whatsapp://send?id=1234567890&text=Hello`
3636

3737
## 4.17.0 (2025-01-29)
3838

@@ -122,7 +122,7 @@
122122
- feat: add support for the `?inline` query by importing SVG file in JS as data URL
123123
```js
124124
import file from './image.svg'; // import according the matched webpack config, defaults as output filename
125-
125+
126126
import file from './image.svg?inline'; // import as UTF-8 data URL
127127
import file from './image.svg?inline=utf8'; // import as UTF-8 data URL
128128
import file from './image.svg?inline=base64'; // import as base64-encoded data URL
@@ -176,7 +176,7 @@
176176

177177
- feat: rebuilt all entry point templates by serve/watch, after a partial file is modified, #127.\
178178
**The problem:**
179-
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.
179+
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.
180180

181181
## 4.8.1 (2024-12-06)
182182

@@ -242,7 +242,7 @@
242242
## 4.4.2 (2024-11-18)
243243

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

247247
## 4.4.1 (2024-11-05)
248248

@@ -275,7 +275,7 @@
275275
WARNING: Webpack version `5.96.0` introduces the BREAKING CHANGE in the `CodeGenerationResults` class!
276276
- feat: add support for Webpack `>= 5.96` to correct CSS lazy loading
277277
WARNING: Webpack version `5.96.0` introduces the BREAKING CHANGE in the `AssetGenerator` class!
278-
- chore: update package and devel dependencies
278+
- chore: update package and dev dependencies
279279
- test: update tests
280280

281281
## 4.1.4 (2024-11-01)
@@ -285,7 +285,7 @@
285285
## 4.1.3 (2024-10-28)
286286

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

290290
## 4.1.2 (2024-10-21)
291291

@@ -442,7 +442,7 @@ module.exports = [
442442

443443
- fix: ERROR in RealContentHashPlugin in serv/watch mode after adding new import file
444444
- fix: when using integrity occurs ERROR in RealContentHashPlugin in serv/watch mode after changes by using dynamic import
445-
445+
446446
### MISC
447447

448448
- refactor: rewrite all static classes to regular, this is needed to support webpack multiple configurations
@@ -614,7 +614,7 @@ See release 4.0.0
614614
});
615615
}
616616
}
617-
617+
618618
module.exports = {
619619
plugins: [
620620
new MyPlugin({
@@ -707,7 +707,7 @@ See release 4.0.0
707707
## 3.5.0 (2024-02-18)
708708
709709
- feat: add support for the `Pug` template engine.
710-
The `pug` preprocessor based on the [@webdiscus/pug-loader](https://github.com/webdiscus/pug-loader) source code
710+
The `pug` preprocessor based on the [@webdiscus/pug-loader](https://github.com/webdiscus/pug-loader) source code
711711
and has the same options and features.
712712
- test: add pug tests
713713
- docs: add documentation for using the pug
@@ -795,7 +795,7 @@ See release 4.0.0
795795
For example:
796796
```js
797797
import personTmpl from './partials/person.ejs';
798-
798+
799799
// render template function with variables in browser
800800
document.getElementById('person').innerHTML = personTmpl({ name: 'Walter White', age: 50});
801801
```
@@ -882,7 +882,7 @@ See release 4.0.0
882882
```js
883883
const HtmlBundlerPlugin = require('html-bundler-webpack-plugin');
884884
const { FaviconsBundlerPlugin } = require('html-bundler-webpack-plugin/plugins');
885-
885+
886886
module.exports = {
887887
plugins: [
888888
new HtmlBundlerPlugin({
@@ -908,7 +908,7 @@ See release 4.0.0
908908
style.rel = 'stylesheet';
909909
document.head.appendChild(style);
910910
}
911-
911+
912912
loadCSS(require('./style.scss?url')); // <= dynamic load the source style file with `url` query
913913
```
914914
- feat: add `js.inline.attributeFilter` option to keep some original script tag attributes when JS is inlined.\
@@ -977,7 +977,7 @@ See release 4.0.0
977977
style.rel = 'stylesheet';
978978
document.head.appendChild(style);
979979
}
980-
980+
981981
loadCSS(require('./style.scss?lazy')); // <= dynamic load the source style file with `lazy` query
982982
```
983983
- feat(EXPERIMENTAL): add `beforePreprocessor` hook, undocumented
@@ -1412,7 +1412,7 @@ See release 4.0.0
14121412
loaderOptions: {
14131413
preprocessor: 'nunjucks', // <= NEW 'nunjucks' value
14141414
preprocessorOptions: {
1415-
// async: true, // dafaults is false, to compile asynchronous templates set as true
1415+
// async: true, // defaults is false, to compile asynchronous templates set as true
14161416
},
14171417
},
14181418
}),
@@ -1700,7 +1700,7 @@ If you have pure HTML file you can disable this processing to save the compilati
17001700
- feat: improve verbose information output for extracted scripts
17011701
- fix: resolve scripts in diff pages generated from one template
17021702
- fix: warning for duplicate files when many html files are generated from one template
1703-
- refactor: optimise code structure, code cleanup
1703+
- refactor: optimize code structure, code cleanup
17041704
- refactor: optimize code for processing of scripts
17051705
- test: add base and advanced test template for new issues
17061706
- chore: add GitHub CONTRIBUTING.md
@@ -1718,7 +1718,7 @@ If you have pure HTML file you can disable this processing to save the compilati
17181718
- fix: resolve assets when the same file is used on many pages generated from the same template
17191719
- fix: pass data to template after changes when using HMR
17201720
- fix: by verbose display a file path relative by working directory instead of an absolute path
1721-
- refactor: code optimisation
1721+
- refactor: code optimization
17221722
- test: add tests for bugfixes
17231723
- docs: update readme
17241724
@@ -1786,8 +1786,8 @@ If you have pure HTML file you can disable this processing to save the compilati
17861786
- feat: add to default resolving the `data` attribute of `object` tag
17871787
- feat: add supports the `responsive-loader`
17881788
- fix: resolve exact attribute name w/o leading wildcard
1789-
- fix: resolve mutiline attributes
1790-
- fix: resolve mutiline values in srcset attribute
1789+
- fix: resolve multiline attributes
1790+
- fix: resolve multiline values in srcset attribute
17911791
- test: add tests for new options, messages
17921792
- docs: update readme
17931793

0 commit comments

Comments
 (0)