# assets-upload-loader **Repository Path**: fwkit/assets-upload-loader ## Basic Information - **Project Name**: assets-upload-loader - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-24 - **Last Updated**: 2021-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # assets-upload-loader A loader for webpack which upload files to server. # Getting Started To begin, you'll need to install assets-upload-loader: ``` $ npm install assets-upload-loader --save-dev ``` OR ``` yarn add -D assets-upload-loader ``` **webpack.config.js** ```js module.exports = { module: { rules: [ { test: /\.(png|jpg|gif)$/i, use: [ { loader: 'assets-upload-loader', options: { upload: { url: 'https://example.com/upload', data: { token: 'upload token', to: 'to_dir', }, }, name: 'assets/[name].[hash:6].[ext]', }, }, ], }, ], }, }; ``` And run `webpack` via your preferred method.