2020-02-11 21:47:54 +08:00
|
|
|
This example shows the usage of the asset module type with asset generator options customization.
|
2019-11-16 00:27:36 +08:00
|
|
|
|
2020-02-11 21:47:54 +08:00
|
|
|
Files can be imported similar to other modules without file-loader or url-loader.
|
2019-11-16 00:27:36 +08:00
|
|
|
|
|
|
|
# example.js
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
_{{example.js}}_
|
|
|
|
```
|
|
|
|
|
|
|
|
# webpack.config.js
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
_{{webpack.config.js}}_
|
|
|
|
```
|
|
|
|
|
|
|
|
# js/output.js
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
_{{dist/output.js}}_
|
|
|
|
```
|
|
|
|
|
|
|
|
# Info
|
|
|
|
|
|
|
|
## webpack output
|
|
|
|
|
|
|
|
```
|
|
|
|
_{{stdout}}_
|
|
|
|
```
|