Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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")
}),
],
};
```