Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swiftwasm/swift-webpack-plugin
webpack plugin for Swift
https://github.com/swiftwasm/swift-webpack-plugin
Last synced: 14 days ago
JSON representation
webpack plugin for Swift
- Host: GitHub
- URL: https://github.com/swiftwasm/swift-webpack-plugin
- Owner: swiftwasm
- License: mit
- Created: 2020-04-28T07:09:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T22:07:20.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T21:55:32.396Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 229 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @swiftwasm/swift-webpack-plugin
webpack plugin for Swift
## Installation
```sh
npm install -D @swiftwasm/swift-webpack-plugin
```## Usage
Please see [example project](https://github.com/kateinoigakukun/life-game-with-swiftwasm/blob/master/webpack.config.js)
```javascript
const path = require('path');
const SwiftWebpackPlugin = require('@swiftwasm/swift-webpack-plugin')module.exports = {
plugins: [
new SwiftWebpackPlugin({
packageDirectory: path.join(__dirname, 'LifeGame'),
target: 'LifeGameWeb',
dist: path.join(__dirname, "dist")
}),
],
};
```