webpack/examples/asset-simple/template.md

30 lines
359 B
Markdown
Raw Permalink Normal View History

2020-02-28 00:16:28 +08:00
This is a very simple example that shows the usage of the asset module type.
2019-03-31 22:17:22 +08:00
Files can be imported like other modules without file-loader.
# example.js
2019-06-06 05:29:53 +08:00
```javascript
_{{example.js}}_
2019-03-31 22:17:22 +08:00
```
# webpack.config.js
```javascript
_{{webpack.config.js}}_
```
2019-03-31 22:17:22 +08:00
# js/output.js
2019-06-06 05:29:53 +08:00
```javascript
_{{dist/output.js}}_
2019-03-31 22:17:22 +08:00
```
# Info
## webpack output
```
2019-06-06 05:29:53 +08:00
_{{stdout}}_
2019-03-31 22:17:22 +08:00
```