https://github.com/react-figma/webpack-config
Webpack config for react-figma projects
https://github.com/react-figma/webpack-config
Last synced: 11 months ago
JSON representation
Webpack config for react-figma projects
- Host: GitHub
- URL: https://github.com/react-figma/webpack-config
- Owner: react-figma
- Created: 2019-11-20T13:49:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T21:21:41.000Z (over 3 years ago)
- Last Synced: 2025-04-27T03:01:57.380Z (12 months ago)
- Language: JavaScript
- Size: 801 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack-config
[](https://www.npmjs.com/package/react-figma-webpack-config)
Webpack config for react-figma projects
## Installation
Install it with yarn:
```
yarn add react-figma-webpack-config html-webpack-inline-source-plugin html-webpack-plugin svg-inline-loader ts-loader webpack webpack-merge -D
```
Or with npm:
```
npm i react-figma-webpack-config html-webpack-inline-source-plugin html-webpack-plugin svg-inline-loader ts-loader webpack webpack-merge -D
```
## Usage
At webpack config:
```javascript
var configure = require('react-figma-webpack-config');
module.exports = configure();
```
Configuration also can be extended:
```javascript
var configure = require('react-figma-webpack-config');
module.exports = configure({
entry: {
ui: './src/ui.js', // The entry point for your UI code
code: './src/code.js' // The entry point for your plugin code
},
...
});
```