build-plugin-sto-load-assets
v1.0.17
Published
build-plugin-sto-load-assets
Downloads
7
Readme
build-plugin-sto-load-assets
build-plugin-sto-load-assets
Getting Started
installation
Add via npm
$ npm install build-plugin-sto-load-assets --save-dev
Usage
- Import
build-plugin-sto-load-assets
in your webpack config file
import BuildPluginStoLoadAssets from 'build-plugin-sto-load-assets';
webpack.config.js file
...
plugins: [
...other plugin
new BuildPluginStoLoadAssets()
],
- build-plugin-sto-load-assets download folder is assets and default extension file ['jpg', 'gif', 'png', 'jpeg'], you can extension file or change download dir;
import BuildPluginStoLoadAssets from 'build-plugin-sto-load-assets';
webpack.config.js file
...
externals: {
download: {
dir: 'assets',
extra: ['png', 'svg']
}
},