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: 4 months ago
JSON representation

webpack plugin for Swift

Lists

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