1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
This is a simple example that shows the usage of a custom parser for json-modules.
Toml, yaml and json5 files can be imported like other modules without toml-loader.
# data.toml
```toml
_{{data.toml}}_
```
# data.yaml
```yaml
_{{data.yaml}}_
```
# data.json5
```json5
_{{data.json5}}_
```
# example.js
```javascript
_{{example.js}}_
```
# webpack.config.js
```javascript
_{{webpack.config.js}}_
```
# js/output.js
```javascript
_{{dist/output.js}}_
```
# Info
## webpack output
```
_{{stdout}}_
```
|