webpack/examples/custom-json-modules/template.md

488 B

This very simple example shows usage of a custom parser for json-modules.

Toml files can be imported like other modules without toml-loader.

data.toml

_{{data.toml}}_

data.yaml

_{{data.yaml}}_

data.json

_{{data.json}}_

example.js

_{{example.js}}_

webpack.config.js

_{{webpack.config.js}}_

js/output.js

_{{dist/output.js}}_

Info

webpack output

_{{stdout}}_